Enum Class AutoSignInPermission

java.lang.Object
java.lang.Enum<AutoSignInPermission>
com.iizix.device.AutoSignInPermission
All Implemented Interfaces:
Serializable, Comparable<AutoSignInPermission>, Constable

public enum AutoSignInPermission extends Enum<AutoSignInPermission>
Auto-sign in permission values. The lower the value, the tougher authentication requirements for a returning user.
Author:
Christopher Mindus
  • Enum Constant Details

    • NOT_ALLOWED

      public static final AutoSignInPermission NOT_ALLOWED
      Auto-sign in is not allowed.
    • BIOMETRIC

      public static final AutoSignInPermission BIOMETRIC
      Auto-sign is allowed only when biometric authentication is supported on the client device using fingerprint or facial recognition (Fingerprint Unlock or Face Unlock for Android, Touch ID or Face ID for Apple clients).
    • ALLOWED

      public static final AutoSignInPermission ALLOWED
      Auto-sign in is allowed regardless of biometric authentication support on client device.
  • Method Details

    • values

      public static AutoSignInPermission[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AutoSignInPermission valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isStronger

      public boolean isStronger(AutoSignInPermission other)
      Checks if the current sign-in permission is tougher or stronger than the one specified as the other parameter.
      Parameters:
      other - The other auto-sign in permission.
      Returns:
      true if the current instance of the auto-sign in permission is tougher or stronger than the other, false otherwise (or same permissions).