UAFStatusCode
public struct UAFStatusCode : RawRepresentable, Codable, Equatable
extension UAFStatusCode: CustomStringConvertible
The list of UAF protocol status codes, which indicate the result of the UAF operation at the NEVIS Mobile Authentication backend.
Note
These codes do not represent the HTTP [RFC7230] layer or other transport layers. They are intended for consumption by both the client-side web app and FIDO UAF Client to inform application-specific error reporting, retry and housekeeping behavior.-
Declaration
Swift
public let rawValue: Int
-
Declaration
Swift
public init(rawValue: Int)
-
Operation completed.
Declaration
Swift
static let ok: UAFStatusCode
-
Message accepted, but not completed at this time. The RP may need time to process the attestation, run risk scoring, etc. The server should not send an authenticationToken with a 1202 response.
Declaration
Swift
static let accepted: UAFStatusCode
-
The server did not understand the message.
Declaration
Swift
static let badRequest: UAFStatusCode
-
The userid must be authenticated to perform this operation, or this KeyID is not associated with this UserID.
Declaration
Swift
static let unauthorized: UAFStatusCode
-
The userid is not allowed to perform this operation. Client should not retry.
Declaration
Swift
static let forbidden: UAFStatusCode
-
Not found.
Declaration
Swift
static let notFound: UAFStatusCode
-
Request Timeout.
Declaration
Swift
static let requestTimeout: UAFStatusCode
-
The server was unable to locate authoritative metadata for the AAID.
Declaration
Swift
static let unknownAAID: UAFStatusCode
-
The server was unable to locate a registration for the given UserID and KeyID combination. This error indicates that there is an invalid registration on the user’s device.
Declaration
Swift
static let unknownKeyID: UAFStatusCode
-
The server refused to service the request due to a missing or mismatched channel binding(s).
Declaration
Swift
static let channelBindingRefused: UAFStatusCode
-
The server refused to service the request because the request message nonce was unknown, expired or the server has previously serviced a message with the same nonce and user ID.
Declaration
Swift
static let requestInvalid: UAFStatusCode
-
The authenticator is not acceptable according to the server’s policy, for example because the capability registry used by the server reported different capabilities than client-side discovery.
Declaration
Swift
static let unacceptableAuthenticator: UAFStatusCode
-
The authenticator is considered revoked by the server.
Declaration
Swift
static let revokedAuthenticator: UAFStatusCode
-
The key used is unacceptable. Perhaps it is on a list of known weak keys or uses insecure parameter choices.
Declaration
Swift
static let unacceptableKey: UAFStatusCode
-
The server believes the authenticator to be capable of using a stronger mutually-agreeable algorithm than was presented in the request.
Declaration
Swift
static let unacceptableAlgorithm: UAFStatusCode
-
The attestation(s) provided were not accepted by the server.
Declaration
Swift
static let unacceptableAttestation: UAFStatusCode
-
The server was unable or unwilling to use required capabilities provided supplementally to the authenticator by the client software.
Declaration
Swift
static let unacceptableClientCapabilities: UAFStatusCode
-
There was a problem with the contents of the message and the server was unwilling or unable to process it.
Declaration
Swift
static let unacceptableContent: UAFStatusCode
-
Internal server error.
Declaration
Swift
static let internalServerError: UAFStatusCode
-
Declaration
Swift
public var description: String { get }