Enum Class EDeviceBindingErrorReason
java.lang.Object
java.lang.Enum<EDeviceBindingErrorReason>
com.unblu.sdk.module.integrity.devicebinding.EDeviceBindingErrorReason
- All Implemented Interfaces:
Serializable,Comparable<EDeviceBindingErrorReason>,Constable
Machine-readable reason for a
DeviceBindingException.
Combines the server's EDeviceBindingErrorReason codes with the client-only and transport
reasons produced on the device. UNKNOWN is used for any code not recognized here, such as a
newer server code or an HTTP_<status>; the original string is then preserved via
DeviceBindingException.getRawReason().
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe maximum number of device bindings for the user has been reached.No binding exists for the request.The binding belongs to a different owner.The binding has been revoked.The authentication challenge has expired.The signed challenge does not match the expected one.No device information was found for the binding.The enrollment challenge has expired.No enrollment challenge was issued for this request.The login preceding the binding calls was rejected by the serverThe public key sent by the device was rejected.The payload of the scanned QR code could not be parsed.The server response was missing or could not be parsed.The signature could not be verified by the server.The enrollment token is invalid.Generating the device key pair failed.The login preceding the binding calls failed.The request failed due to a network or connectivity error.Persisting binding data on the device failed.Revoking the binding failed.Signing the challenge with the device key failed.The enrollment token has expired.Any code not recognized above (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic EDeviceBindingErrorReasonMaps a raw reason code string to an enum value, returningUNKNOWNwhen unrecognized.static EDeviceBindingErrorReasonReturns the enum constant of this class with the specified name.static EDeviceBindingErrorReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_TOKEN
The enrollment token is invalid. -
TOKEN_EXPIRED
The enrollment token has expired. -
ENROLLMENT_CHALLENGE_NOT_ISSUED
No enrollment challenge was issued for this request. -
ENROLLMENT_CHALLENGE_EXPIRED
The enrollment challenge has expired. -
INVALID_PUBLIC_KEY
The public key sent by the device was rejected. -
BINDING_LIMIT_REACHED
The maximum number of device bindings for the user has been reached. -
BINDING_NOT_FOUND
No binding exists for the request. -
BINDING_REVOKED
The binding has been revoked. -
BINDING_OWNERSHIP_MISMATCH
The binding belongs to a different owner. -
INVALID_SIGNATURE
The signature could not be verified by the server. -
CHALLENGE_EXPIRED
The authentication challenge has expired. -
CHALLENGE_MISMATCH
The signed challenge does not match the expected one. -
DEVICE_INFO_NOT_FOUND
No device information was found for the binding. -
INVALID_QR_PAYLOAD
The payload of the scanned QR code could not be parsed. -
KEY_GENERATION_FAILED
Generating the device key pair failed. -
SIGNING_FAILED
Signing the challenge with the device key failed. -
PERSISTENCE_FAILED
Persisting binding data on the device failed. -
INVALID_RESPONSE
The server response was missing or could not be parsed. -
REVOKE_FAILED
Revoking the binding failed. -
NETWORK_ERROR
The request failed due to a network or connectivity error. -
LOGIN_FAILED
The login preceding the binding calls failed. -
INVALID_CREDENTIALS
The login preceding the binding calls was rejected by the server -
UNKNOWN
Any code not recognized above (e.g. a newer server code orHTTP_<status>).
-
-
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
-
fromCode
Maps a raw reason code string to an enum value, returningUNKNOWNwhen unrecognized.
-