Enum Class FidoErrorCode

java.lang.Object
java.lang.Enum<FidoErrorCode>
ch.nevis.mobile.sdk.api.operation.FidoErrorCode
All Implemented Interfaces:
Serializable, Comparable<FidoErrorCode>, Constable

public enum FidoErrorCode extends Enum<FidoErrorCode>
Collection error codes based on the FIDO UAF client error codes.
  • Enum Constant Details

    • NO_ERROR

      public static final FidoErrorCode NO_ERROR
      The operation completed with no error condition encountered.
    • WAIT_USER_ACTION

      public static final FidoErrorCode WAIT_USER_ACTION
      Waiting on user action to proceed. For example, selecting an authenticator in the FIDO UAF client user interface, performing user verification, or completing an enrollment step with an authenticator.
    • INSECURE_TRANSPORT

      public static final FidoErrorCode INSECURE_TRANSPORT
      window.location.protocol is not "https" or the DOM contains insecure mixed content.
    • USER_CANCELED

      public static final FidoErrorCode USER_CANCELED
      The user declined any necessary part of the interaction to complete the registration.
    • UNSUPPORTED_VERSION

      public static final FidoErrorCode UNSUPPORTED_VERSION
      The UAFMessage does not specify a protocol version supported by this FIDO UAF Client.
    • NO_SUITABLE_AUTHENTICATOR

      public static final FidoErrorCode NO_SUITABLE_AUTHENTICATOR
      No authenticator matching the authenticator policy specified in the UAFMessage is available to service the request, or the user declined to consent to the use of a suitable authenticator.
    • PROTOCOL_ERROR

      public static final FidoErrorCode PROTOCOL_ERROR
      A violation of the UAF protocol occurred. The interaction may have timed out; the origin associated with the message may not match the origin of the calling DOM context, or the protocol message may be malformed or tampered with.
    • UNTRUSTED_FACET_ID

      public static final FidoErrorCode UNTRUSTED_FACET_ID
      The client declined to process the operation because the caller's calculated facet identifier was not found in the trusted list for the application identifier specified in the request message.

      This error occurs typically when there is a misconfiguration of the server: the facets defined by the FIDO UAF server do not match the configuration of the application.

    • KEY_DISAPPEARED_PERMANENTLY

      public static final FidoErrorCode KEY_DISAPPEARED_PERMANENTLY
      The UAuth key disappeared from the authenticator and cannot be restored.

      This is a non-recoverable error: the existing credentials are not valid anymore. They should be removed from the server and a new authenticator must be registered to authenticate again.

    • AUTHENTICATOR_ACCESS_DENIED

      public static final FidoErrorCode AUTHENTICATOR_ACCESS_DENIED
      The authenticator denied access to the resulting request.
    • INVALID_TRANSACTION_CONTENT

      public static final FidoErrorCode INVALID_TRANSACTION_CONTENT
      Transaction content cannot be rendered, e.g. format doesn't fit authenticator's need.

      Note: The transaction content format requirements are specified in the authenticator's metadata statement.

    • USER_NOT_RESPONSIVE

      public static final FidoErrorCode USER_NOT_RESPONSIVE
      The user took too long to follow an instruction, e.g. didn't swipe the finger within the accepted time.
    • INSUFFICIENT_AUTHENTICATOR_RESOURCES

      public static final FidoErrorCode INSUFFICIENT_AUTHENTICATOR_RESOURCES
      Insufficient resources in the authenticator to perform the requested task.
    • USER_LOCKOUT

      public static final FidoErrorCode USER_LOCKOUT
      The operation failed because the user is locked out and the authenticator cannot automatically trigger an action to change that. For example, an authenticator could allow the user to enter an alternative password to re-enable the use of fingerprints after too many failed finger verification attempts. This error will be reported if such method either does not exist or the ASM / authenticator cannot automatically trigger it.
    • USER_NOT_ENROLLED

      public static final FidoErrorCode USER_NOT_ENROLLED
      The operation failed because the user is not enrolled to the authenticator and the authenticator cannot automatically trigger user enrollment.
    • UNKNOWN

      public static final FidoErrorCode UNKNOWN
      An error condition not described by the above-listed codes.
  • Method Details

    • values

      public static FidoErrorCode[] 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 FidoErrorCode 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
    • description

      public String description()
      Returns a description of the error.
      Returns:
      a description of the error
    • code

      public int code()
      Returns the code associated with this error.
      Returns:
      the code associated with this error