Enum Class EDeviceBindingErrorReason

java.lang.Object
java.lang.Enum<EDeviceBindingErrorReason>
com.unblu.sdk.module.integrity.devicebinding.EDeviceBindingErrorReason
All Implemented Interfaces:
Serializable, Comparable<EDeviceBindingErrorReason>, Constable

public enum EDeviceBindingErrorReason extends Enum<EDeviceBindingErrorReason>
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().

  • Enum Constant Details

    • INVALID_TOKEN

      public static final EDeviceBindingErrorReason INVALID_TOKEN
      The enrollment token is invalid.
    • TOKEN_EXPIRED

      public static final EDeviceBindingErrorReason TOKEN_EXPIRED
      The enrollment token has expired.
    • ENROLLMENT_CHALLENGE_NOT_ISSUED

      public static final EDeviceBindingErrorReason ENROLLMENT_CHALLENGE_NOT_ISSUED
      No enrollment challenge was issued for this request.
    • ENROLLMENT_CHALLENGE_EXPIRED

      public static final EDeviceBindingErrorReason ENROLLMENT_CHALLENGE_EXPIRED
      The enrollment challenge has expired.
    • INVALID_PUBLIC_KEY

      public static final EDeviceBindingErrorReason INVALID_PUBLIC_KEY
      The public key sent by the device was rejected.
    • BINDING_LIMIT_REACHED

      public static final EDeviceBindingErrorReason BINDING_LIMIT_REACHED
      The maximum number of device bindings for the user has been reached.
    • BINDING_NOT_FOUND

      public static final EDeviceBindingErrorReason BINDING_NOT_FOUND
      No binding exists for the request.
    • BINDING_REVOKED

      public static final EDeviceBindingErrorReason BINDING_REVOKED
      The binding has been revoked.
    • BINDING_OWNERSHIP_MISMATCH

      public static final EDeviceBindingErrorReason BINDING_OWNERSHIP_MISMATCH
      The binding belongs to a different owner.
    • INVALID_SIGNATURE

      public static final EDeviceBindingErrorReason INVALID_SIGNATURE
      The signature could not be verified by the server.
    • CHALLENGE_EXPIRED

      public static final EDeviceBindingErrorReason CHALLENGE_EXPIRED
      The authentication challenge has expired.
    • CHALLENGE_MISMATCH

      public static final EDeviceBindingErrorReason CHALLENGE_MISMATCH
      The signed challenge does not match the expected one.
    • DEVICE_INFO_NOT_FOUND

      public static final EDeviceBindingErrorReason DEVICE_INFO_NOT_FOUND
      No device information was found for the binding.
    • INVALID_QR_PAYLOAD

      public static final EDeviceBindingErrorReason INVALID_QR_PAYLOAD
      The payload of the scanned QR code could not be parsed.
    • KEY_GENERATION_FAILED

      public static final EDeviceBindingErrorReason KEY_GENERATION_FAILED
      Generating the device key pair failed.
    • SIGNING_FAILED

      public static final EDeviceBindingErrorReason SIGNING_FAILED
      Signing the challenge with the device key failed.
    • PERSISTENCE_FAILED

      public static final EDeviceBindingErrorReason PERSISTENCE_FAILED
      Persisting binding data on the device failed.
    • INVALID_RESPONSE

      public static final EDeviceBindingErrorReason INVALID_RESPONSE
      The server response was missing or could not be parsed.
    • REVOKE_FAILED

      public static final EDeviceBindingErrorReason REVOKE_FAILED
      Revoking the binding failed.
    • NETWORK_ERROR

      public static final EDeviceBindingErrorReason NETWORK_ERROR
      The request failed due to a network or connectivity error.
    • LOGIN_FAILED

      public static final EDeviceBindingErrorReason LOGIN_FAILED
      The login preceding the binding calls failed.
    • INVALID_CREDENTIALS

      public static final EDeviceBindingErrorReason INVALID_CREDENTIALS
      The login preceding the binding calls was rejected by the server
    • UNKNOWN

      public static final EDeviceBindingErrorReason UNKNOWN
      Any code not recognized above (e.g. a newer server code or HTTP_<status>).
  • Method Details

    • values

      public static EDeviceBindingErrorReason[] 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 EDeviceBindingErrorReason 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
    • fromCode

      @NonNull public static EDeviceBindingErrorReason fromCode(@Nullable String code)
      Maps a raw reason code string to an enum value, returning UNKNOWN when unrecognized.