Extension
public struct Extension : Equatable, Codable
The Extension
type is used to represent a generic extension used in various operations.
FIDO extensions can appear in several places, including the UAF protocol messages, authenticator commands, or in the assertion signed by the authenticator.
-
The extension identifier.
Declaration
Swift
public let id: String
-
Arbitrary data with a semantics agreed between server and client. Binary data is Base64url encoded.
Declaration
Swift
public let data: String?
-
A boolean indicating whether unknown extensions must be ignored (
false
) or must lead to an error (true
).Declaration
Swift
public let failIfUnknown: Bool
-
Creates a new
Extension
instance.Declaration
Swift
public init(id: String, data: String? = nil, failIfUnknown: Bool)
Parameters
id
The extension identifier.
data
Arbitrary data with a semantics agreed between server and client. Binary data is Base64url encoded.
failIfUnknown
A boolean indicating whether unknown extensions must be ignored (
false
) or must lead to an error (true
).
-
The type used for the identifier of extensions defined in NEVIS Mobile Authentication.
See moreDeclaration
Swift
enum Identifier