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
Journeyobject associated with the current authentication flow.Declaration
Swift
public var journey: Journey? -
The
ContinueNodeobject 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
Journeyframework to initialize the callback with the values from the server.Declaration
Swift
public override func initValue(name: String, value: Any)Parameters
nameThe name of the value.
valueThe value.
-
Sets the JWS value in the callback. This method is called by the
PingBinderafter successfully signing the challenge.Declaration
Swift
public func setJws(_ jws: String)Parameters
jwsThe JWS to be set.
-
sign(config:Asynchronous) Signs a challenge with a previously bound device. This method calls the
PingBinderto perform the signing operation.Declaration
Swift
public func sign(config: (DeviceBindingConfig) -> Void = { _ in }) async -> Result<[String : Any], Error>Parameters
configA closure to configure the
DeviceBindingConfig.Return Value
A
Resultcontaining the callback’s JSON representation or anError. -
sign(authenticator:Asynchronous) Signs a challenge with a previously bound device using a custom authenticator. This method calls the
PingBinderto perform the signing operation.Declaration
Swift
public func sign(authenticator: DeviceAuthenticator) async -> Result<[String : Any], Error>Parameters
authenticatorThe custom
DeviceAuthenticatorto use for signing.Return Value
A
Resultcontaining the callback’s JSON representation or anError.
View on GitHub