WebAuthnAuthentication

Handle WebAuthn Authentication

Constructors

Link copied to clipboard
constructor(input: JSONObject)
constructor(options: PublicKeyCredentialRequestOptions)
constructor()

Properties

Link copied to clipboard
internal lateinit var options: PublicKeyCredentialRequestOptions

Functions

Link copied to clipboard
private suspend fun authenticate(context: Context, userHandle: ByteArray?): String

suspend fun authenticate(context: Context, webAuthnKeySelector: WebAuthnKeySelector = WebAuthnKeySelector.DEFAULT): String

Perform WebAuthn Authentication

Link copied to clipboard
protected fun getAllowCredentials(value: JSONObject): List<PublicKeyCredentialDescriptor>

Parse and retrieve all the allow credentials

Link copied to clipboard
protected fun getCredentials(credentials: JSONArray): List<PublicKeyCredentialDescriptor>

Parse the PublicKeyCredentialDescriptor

Link copied to clipboard
open suspend override fun getPublicKeyCredential(context: Context): PublicKeyCredential
Link copied to clipboard

Parse the relaying party id.