DeviceSigningVerifierCallback

public class DeviceSigningVerifierCallback : AbstractCallback, @unchecked Sendable, JourneyAware, ContinueNodeAware

A Journey callback for handling device signing verification. This callback is received from the AIC authentication flow when a challenge needs to be signed by a bound device.

  • The Journey object associated with the current authentication flow.

    Declaration

    Swift

    public var journey: Journey?
  • The ContinueNode object that can be used to continue the authentication flow.

    Declaration

    Swift

    public var continueNode: ContinueNode?
  • The user ID for the signing.

    Declaration

    Swift

    public var userId: String?
  • The challenge to be signed.

    Declaration

    Swift

    public var challenge: String
  • The title to be displayed in the UI.

    Declaration

    Swift

    public var title: String
  • The subtitle to be displayed in the UI.

    Declaration

    Swift

    public var subtitle: String
  • The description to be displayed in the UI.

    Declaration

    Swift

    public var description: String
  • The timeout for the operation.

    Declaration

    Swift

    public var timeout: Int
  • Initializes the callback with the given name and value. This method is called by the Journey framework to initialize the callback with the values from the server.

    Declaration

    Swift

    public override func initValue(name: String, value: Any)

    Parameters

    name

    The name of the value.

    value

    The value.

  • Sets the JWS value in the callback. This method is called by the PingBinder after successfully signing the challenge.

    Declaration

    Swift

    public func setJws(_ jws: String)

    Parameters

    jws

    The JWS to be set.

  • sign(config:) Asynchronous

    Signs a challenge with a previously bound device. This method calls the PingBinder to perform the signing operation.

    Declaration

    Swift

    public func sign(config: (DeviceBindingConfig) -> Void = { _ in }) async -> Result<[String : Any], Error>

    Parameters

    config

    A closure to configure the DeviceBindingConfig.

    Return Value

    A Result containing the callback’s JSON representation or an Error.

  • sign(authenticator:) Asynchronous

    Signs a challenge with a previously bound device using a custom authenticator. This method calls the PingBinder to perform the signing operation.

    Declaration

    Swift

    public func sign(authenticator: DeviceAuthenticator) async -> Result<[String : Any], Error>

    Parameters

    authenticator

    The custom DeviceAuthenticator to use for signing.

    Return Value

    A Result containing the callback’s JSON representation or an Error.