DeviceAuthenticator

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun authenticate(context: Context): DeviceBindingStatus

Authenticate the user to access the

Link copied to clipboard
abstract fun deleteKeys(context: Context)
Link copied to clipboard
abstract suspend fun generateKeys(context: Context, attestation: Attestation): KeyPair

generate the public and private KeyPair with Challenge

Link copied to clipboard
open fun getAlgorithm(): String

The JWS algorithm (alg) parameter. Header Parameter identifies the cryptographic algorithm used to secure the JWS.

Link copied to clipboard
private fun getCertificateChain(userId: String): List<Base64>
Link copied to clipboard
open fun getIssueTime(): Date

Get the token signed issue time.

Link copied to clipboard

Get the token not before time.

Link copied to clipboard
open fun isSupported(context: Context, attestation: Attestation = Attestation.None): Boolean

check if supported device binding

Link copied to clipboard
open fun prompt(prompt: Prompt)

Set the Authentication Prompt

Link copied to clipboard
open fun sign(context: Context, userKey: UserKey, privateKey: PrivateKey, signature: Signature?, challenge: String, expiration: Date, customClaims: Map<String, Any> = emptyMap()): String
open fun sign(context: Context, keyPair: KeyPair, signature: Signature?, kid: String, userId: String, challenge: String, expiration: Date, attestation: Attestation = Attestation.None): String

sign the challenge sent from the server and generate signed JWT

Link copied to clipboard
Link copied to clipboard
open fun validateCustomClaims(customClaims: Map<String, Any>): Boolean

Validate custom claims