OperationError

public enum OperationError : MobileAuthenticationClientError
extension OperationError: LocalizedError

An error occurred during registration or deregistration.

  • A network error occurred while redeeming the token: either the server was not reachable or it returned an HTTP error.

    Declaration

    Swift

    case NetworkError(cause: Error? = nil)

    Parameters

    cause

    The underlying error.

  • A FIDO UAF error occurred.

    Declaration

    Swift

    case FidoError(errorCode: FidoErrorCode, cause: Error? = nil)

    Parameters

    errorCode

    The FIDO error code.

    cause

    The underlying error that is related to the error occurred.

  • An error that occurs with username-less out-of-band authentication. If the username of a registered account is provided to the AccountSelectionHandler, but the user is not defined in the server where the token was redeemed.

    Declaration

    Swift

    case UserNotRegisteredInServer(message: String, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

  • An error that occurs during registration. When try to register a new authenticator in a server for a given username, but there is another authenticator already registered in another server for the same username.

    Important

    A username can only be defined in one server.

    Declaration

    Swift

    case UserAlreadyRegisteredInAnotherServer(message: String, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

  • The clocks on the mobile and on the server are too apart and the server refused to validate the JWS. You can ask the user to verify that the device clock is correctly set.

    Important

    This error occurs when a JwsAuthorizationProvider was provided during Deregistration.

    Declaration

    Swift

    case ClockSkewTooBig(cause: Error? = nil)

    Parameters

    cause

    The underlying error that is related to the error occurred.

  • The dispatch target used to sign the JWS is not part of the requested device.

    Important

    This error occurs when a JwsAuthorizationProvider was provided during Deregistration.

    Declaration

    Swift

    case Forbidden(cause: Error? = nil)

    Parameters

    cause

    The underlying error that is related to the error occurred.

  • The request was not authorized. It was not possible to verify the signature of the request.

    Important

    This error occurs when a JwsAuthorizationProvider was provided during Deregistration.

    Declaration

    Swift

    case Unauthorized(cause: Error? = nil)

    Parameters

    cause

    The underlying error that is related to the error occurred.

  • The backend does not support using the JwsAuthorizationProvider. To use JwsAuthorizationProvider with deregistration, the backend must be running nevisFIDO 7.24.02 or later and the device service must be accessible.

    Important

    This error occurs when a JwsAuthorizationProvider was provided during Deregistration.

    Declaration

    Swift

    case OperationNotSupportedByBackend(cause: Error? = nil)

    Parameters

    cause

    The underlying error that is related to the error occurred.

  • The iOS device has no passcode set.

    Declaration

    Swift

    case NoDeviceLockError
  • Unknown error, handling not categorized error cases.

    Requires

    iOS platform

    Declaration

    Swift

    case Unknown(message: String? = nil, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

Localized descriptions

  • A message describing what error occurred.

    Declaration

    Swift

    public var errorDescription: String? { get }