DeviceBindingCallback
open class DeviceBindingCallback : MultipleValuesCallback, Binding
Callback to collect the device binding information
-
The userId received from server
Declaration
Swift
public private(set) var userId: String { get }
-
The userName received from server
Declaration
Swift
public private(set) var userName: String { get }
-
The challenge received from server
Declaration
Swift
public private(set) var challenge: String { get }
-
The authentication type of the journey
Declaration
Swift
public private(set) var deviceBindingAuthenticationType: DeviceBindingAuthenticationType { 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 DeviceBindingCallback
Throws
AuthError.invalidCallbackResponse for invalid callback responseDeclaration
Swift
required public init(json: [String : Any]) throws
Parameters
json
JSON object of DeviceBindingCallback
-
Bind the device.
Declaration
Swift
open func bind(deviceAuthenticator: ((DeviceBindingAuthenticationType) -> DeviceAuthenticator)? = nil, prompt: Prompt? = nil, completion: @escaping DeviceBindingResultCallback)
Parameters
deviceAuthenticator
method for providing a
DeviceAuthenticator
fromDeviceBindingAuthenticationType
- defaults value isdeviceAuthenticatorIdentifier
prompt
Biometric prompt to override the server values
completion
Completion block for Device binding result callback
-
Handle all the errors for the device binding.
Declaration
Swift
open func handleException(status: DeviceBindingStatus, completion: @escaping DeviceBindingResultCallback)
Parameters
status
Device binding status
completion
Completion block Device binding result callback
-
Sets
jws
value in callback responseDeclaration
Swift
public func setJws(_ jws: String)
Parameters
jws
String value of
jws
] -
Sets
deviceName
value in callback responseDeclaration
Swift
public func setDeviceName(_ deviceName: String)
Parameters
deviceName
String value of
deviceName
] -
Sets
deviceId
value in callback responseDeclaration
Swift
public func setDeviceId(_ deviceId: String)
Parameters
deviceId
String value of
deviceId
] -
Sets
clientError
value in callback responseDeclaration
Swift
public func setClientError(_ clientError: String)
Parameters
clientError
String 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 }