Context

public struct Context

The context provided to the user interaction delegate for selecting an authenticator.

  • The account associated with the operation.

    Declaration

    Swift

    public let account: Account?
  • The list of authenticators available for the operation.

    Declaration

    Swift

    public let authenticators: [AuthenticatorInformation]
  • A message to be displayed to the user in case of transaction confirmation.

    Note

    The exact format of the message may depend on the server, e.g. a simple String or a JSON representation.

    Declaration

    Swift

    public let transactionConfirmationData: Data?
  • The operation that requires authenticator selection.

    Declaration

    Swift

    public let operation: Operation
  • ** ONLY FOR AUTOMATED TESTING PURPOSES; DO NOT USE IN PRODUCTION CODE **

    Creates a new context.

    Declaration

    Swift

    public init(account: Account? = nil, authenticators: [AuthenticatorInformation], transactionConfirmationData: Data? = nil, operation: Operation, policyComplianceInformation: [PolicyComplianceInformation] = [])

    Parameters

    account

    The account which has been selected for the operation. The default value is nil.

    authenticators

    The list of authenticators available for the operation.

    transactionConfirmationData

    The list of authenticators available for the operation. The default value is nil.

    operation

    The operation that requires authenticator selection.

    policyComplianceInformation

    The list of PolicyComplianceInformation containing information about which authenticator is policy compliant for the current operation. The default value is an empty list.