FRWebAuthn

class FRWebAuthn @JvmOverloads constructor(val context: Context, val webAuthnDataRepository: WebAuthnDataRepository = WebAuthnDataRepository.WebAuthnDataRepositoryBuilder().context(context) .build(), val remoteWebAuthnRepository: WebAuthnRepository? = RemoteWebAuthnRepository())

Manage PublicKeyCredentialSource that generated by the SDK. The PublicKeyCredentialSource only contains the reference to the actual key, deleting the PublicKeyCredentialSource does not delete the actual key

Constructors

Link copied to clipboard
constructor(context: Context, webAuthnDataRepository: WebAuthnDataRepository = WebAuthnDataRepository.WebAuthnDataRepositoryBuilder().context(context) .build(), remoteWebAuthnRepository: WebAuthnRepository? = RemoteWebAuthnRepository())

Properties

Link copied to clipboard
private val context: Context

Functions

Link copied to clipboard

Delete the PublicKeyCredentialSource by Relying Party Id. This method does not delete the keys from the server.

fun deleteCredentials(publicKeyCredentialSource: PublicKeyCredentialSource)

Delete the provide PublicKeyCredentialSource, the PublicKeyCredentialSource.id will be used as the key to lookup from internal storage. This method does not delete the keys from the server.

suspend fun deleteCredentials(publicKeyCredentialSource: PublicKeyCredentialSource, forceDelete: Boolean = false)

Delete the provide PublicKeyCredentialSource from local storage and also remotely from Server if the key is discoverable. By default, if failed to delete from server, local storage will not be deleted, by providing forceDelete to true, it will also delete local keys if server call is failed.

Link copied to clipboard

Load all the PublicKeyCredentialSource by the provided Relying Party Id