Device Signing Verifier Callback
Callback to collect the device signing information
Properties
Link copied to clipboard
The description to be displayed in biometric prompt
Link copied to clipboard
open val deviceAuthenticatorIdentifier: (type: DeviceBindingAuthenticationType) -> DeviceAuthenticator
Default function to identify DeviceAuthenticator
Functions
Link copied to clipboard
protected open suspend fun authenticate(context: Context, userKey: UserKey, deviceAuthenticator: DeviceAuthenticator, customClaims: Map<String, Any> = emptyMap(), prompt: Prompt? = null)
Helper method to execute signing, show biometric prompt.
Link copied to clipboard
internal suspend fun execute(context: Context, userKeyService: UserKeyService = UserDeviceKeyService(context), userKeySelector: UserKeySelector = DefaultUserKeySelector(), deviceAuthenticator: (type: DeviceBindingAuthenticationType) -> DeviceAuthenticator, customClaims: Map<String, Any> = emptyMap(), prompt: Prompt? = null)
Link copied to clipboard
Return the raw content of the Callback.
Link copied to clipboard
Link copied to clipboard
Create the interface for the Authentication type(Biometric, Biometric_Fallback, none)
Link copied to clipboard
Convert timeout in seconds to Duration
Link copied to clipboard
Get Expiration date for the signed token, claim "exp" will be set to the JWS.
Link copied to clipboard
Link copied to clipboard
Get the first value for input
Get the value for input
Link copied to clipboard
Link copied to clipboard
Handle all the errors for the device binding.
Link copied to clipboard
Link copied to clipboard
Input the Client Error to the server
Link copied to clipboard
Sets the value of the Callback
Link copied to clipboard
open suspend fun sign(context: Context, customClaims: Map<String, Any> = emptyMap(), prompt: Prompt? = null, userKeySelector: UserKeySelector = DefaultUserKeySelector(), deviceAuthenticator: (type: DeviceBindingAuthenticationType) -> DeviceAuthenticator = deviceAuthenticatorIdentifier)
open fun sign(context: Context, customClaims: Map<String, Any> = emptyMap(), userKeySelector: UserKeySelector = DefaultUserKeySelector(), deviceAuthenticator: (type: DeviceBindingAuthenticationType) -> DeviceAuthenticator = deviceAuthenticatorIdentifier, listener: FRListener<Void?>, prompt: Prompt? = null)
Sign the challenge with bounded device keys.