Enum Class DeviceTokenStore.Status
- All Implemented Interfaces:
Serializable, Comparable<DeviceTokenStore.Status>, Constable
- Enclosing class:
DeviceTokenStore
What a presented token is.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe row has expired; it is deleted.The token is not one to sign in with: its device is remembered for MFA only.Accepted, and rotated: the device is given the new token.The token was issued for another application.The token was issued to another device.The token was replaced more thanDeviceTokenStore.GRACE_MSago and has come back: two parties hold it.The table does not exist and could not be created.No row has this token, now or before its last rotation.Method Summary
Modifier and TypeMethodDescriptionstatic DeviceTokenStore.StatusReturns the enum constant of this class with the specified name.static DeviceTokenStore.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
OK
Accepted, and rotated: the device is given the new token.UNKNOWN
No row has this token, now or before its last rotation.EXPIRED
The row has expired; it is deleted.REUSED
The token was replaced more thanDeviceTokenStore.GRACE_MSago and has come back: two parties hold it. The row is deleted.OTHER_DEVICE
The token was issued to another device.OTHER_APPLICATION
The token was issued for another application.NOT_FOR_SIGN_IN
The token is not one to sign in with: its device is remembered for MFA only.UNAVAILABLE
The table does not exist and could not be created.
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