Package com.iizix.device
Enum Class AutoSignInPermission
- All Implemented Interfaces:
Serializable
,Comparable<AutoSignInPermission>
,Constable
Auto-sign in permission values. The lower the value, the tougher authentication requirements for a returning user.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionAuto-sign in is allowed regardless of biometric authentication support on client device.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).Auto-sign in is not allowed.Method Summary
Modifier and TypeMethodDescriptionboolean
isStronger
(AutoSignInPermission other) Checks if the current sign-in permission is tougher or stronger than the one specified as theother
parameter.static AutoSignInPermission
Returns the enum constant of this class with the specified name.static AutoSignInPermission[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
NOT_ALLOWED
Auto-sign in is not allowed.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
Auto-sign in is allowed regardless of biometric authentication support on client device.
Method Details
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
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 nameNullPointerException
- if the argument is null
isStronger
Checks if the current sign-in permission is tougher or stronger than the one specified as theother
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 theother
,false
otherwise (or same permissions).