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]) throwsParameters
jsonJSON object of DeviceBindingCallback
-
Bind the device.
Declaration
Swift
open func bind(deviceAuthenticator: ((DeviceBindingAuthenticationType) -> DeviceAuthenticator)? = nil, prompt: Prompt? = nil, completion: @escaping DeviceBindingResultCallback)Parameters
deviceAuthenticatormethod for providing a
DeviceAuthenticatorfromDeviceBindingAuthenticationType- defaults value isdeviceAuthenticatorIdentifierpromptBiometric 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 DeviceBindingResultCallback)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
deviceNamevalue in callback responseDeclaration
Swift
public func setDeviceName(_ deviceName: String)Parameters
deviceNameString value of
deviceName] -
Sets
deviceIdvalue in callback responseDeclaration
Swift
public func setDeviceId(_ deviceId: String)Parameters
deviceIdString value of
deviceId] -
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