DeviceSigningVerifierCallback
open class DeviceSigningVerifierCallback : MultipleValuesCallback, Binding
Callback to collect the device binding information
-
The userId received from server
Declaration
Swift
public private(set) var userId: String? { get } -
The challenge received from server
Declaration
Swift
public private(set) var challenge: String { get } -
Declaration
Swift
public private(set) var title: String { get } -
Declaration
Swift
public private(set) var subtitle: String { get } -
Declaration
Swift
public private(set) var promptDescription: String { get } -
Declaration
Swift
public private(set) var timeout: Int? { get }
-
Designated initialization method for DeviceSigningVerifierCallback
Throws
AuthError.invalidCallbackResponse for invalid callback responseDeclaration
Swift
required public init(json: [String : Any]) throwsParameters
jsonJSON object of DeviceSigningVerifierCallback
-
Sign the challenge with binded device key
Declaration
Swift
open func sign(userKeySelector: UserKeySelector = DefaultUserKeySelector(), deviceAuthenticator: ((DeviceBindingAuthenticationType) -> DeviceAuthenticator)? = nil, customClaims: [String: Any] = [:], prompt: Prompt? = nil, completion: @escaping DeviceSigningResultCallback)Parameters
userKeySelectorUserKeySelectorimplementation - default value isDefaultUserKeySelector()deviceAuthenticatormethod for providing a
DeviceAuthenticatorfromDeviceBindingAuthenticationType-default value isdeviceAuthenticatorIdentifiercustomClaimsA dictionary of custom claims to be added to the jws payload
promptBiometric prompt to override the server values
completionCompletion block for Device binding result callback
-
Handle all the errors for the device binding.
Declaration
Swift
open func handleException(status: DeviceBindingStatus, completion: @escaping DeviceSigningResultCallback)Parameters
statusDevice binding status
completionCompletion block Device binding result callback
-
Sets
jwsvalue in callback responseDeclaration
Swift
public func setJws(_ jws: String)Parameters
jwsString value of
jws] -
Sets
clientErrorvalue in callback responseDeclaration
Swift
public func setClientError(_ clientError: String)Parameters
clientErrorString value of
clientError] -
Declaration
Swift
open func getDeviceAuthenticator(type: DeviceBindingAuthenticationType) -> DeviceAuthenticator -
Declaration
Swift
open func getExpiration(timeout: Int?) -> Date -
Declaration
Swift
open var deviceAuthenticatorIdentifier: (DeviceBindingAuthenticationType) -> DeviceAuthenticator { get }
View on GitHub