Binding
public protocol Binding
Device Binding protocol to provide utility methods for DeviceBindingCallback and DeviceSigningVerifierCallback
-
Create the interface for the authentication type
Declaration
Swift
func getDeviceAuthenticator(type: DeviceBindingAuthenticationType) -> DeviceAuthenticatorParameters
typeThe Device Binding Authentication Type
Return Value
The recommended
DeviceAuthenticatorthat can handle the providedDeviceBindingAuthenticationType -
Get Expiration date for the signed token, claim “exp” will be set to the JWS.
Declaration
Swift
func getExpiration(timeout: Int?) -> DateReturn Value
The expiration date
-
Default property(method) to identify
DeviceAuthenticatorDeclaration
Swift
var deviceAuthenticatorIdentifier: (DeviceBindingAuthenticationType) -> DeviceAuthenticator { get }
View on GitHub