Context
public struct Context
The context provided to the user interaction delegate for displaying authenticator-specific settings.
-
The authenticator for the settings interaction.
Declaration
Swift
public let authenticator: AuthenticatorInformation
-
The selected operation to be performed for the authenticator.
Declaration
Swift
public let operation: OpenSettingsOperation
-
The authenticator protection status.
Declaration
Swift
public let authenticatorProtectionStatus: AuthenticatorProtectionStatus
-
The formatting properties of the authenticator if applicable.
Declaration
Swift
public let credentialFormat: CredentialFormat?
-
In case a recoverable error occurs during authenticator settings, this property contains information about it.
Always contains the last error, in case of more consecutive recoverable error scenarios.
Declaration
Swift
public let lastRecoverableError: RecoverableError?
-
init(account:
authenticator: operation: authenticatorProtectionStatus: credentialFormat: lastRecoverableError: ) ** ONLY FOR AUTOMATED TESTING PURPOSES; DO NOT USE IN PRODUCTION CODE **
Creates a new context.
Declaration
Swift
public init(account: Account? = nil, authenticator: AuthenticatorInformation, operation: OpenSettingsOperation, authenticatorProtectionStatus: AuthenticatorProtectionStatus, credentialFormat: CredentialFormat?, lastRecoverableError: RecoverableError? = nil)
Parameters
account
The account which has been selected for the operation.
authenticator
The authenticator for the settings interaction.
operation
The selected operation to be performed for the authenticator.
authenticatorProtectionStatus
The authenticator protection status.
credentialFormat
The formatting properties of the authenticator if applicable.
lastRecoverableError
The last occurred recoverable error if it is supported by the authenticator.