WebAuthnDataRepository

open class WebAuthnDataRepository(val context: Context, sharedPreferences: SharedPreferences?)

Constructors

Link copied to clipboard
internal constructor(context: Context, sharedPreferences: SharedPreferences?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
private lateinit var dataRepository: SharedPreferences

Functions

Link copied to clipboard
fun delete(rpId: String)

Delete all the PublicKeyCredentialSource with provided rpId

fun delete(publicKeyCredentialSource: PublicKeyCredentialSource)

Delete the provided PublicKeyCredentialSource

Link copied to clipboard
Link copied to clipboard

Retrieve all PublicKeyCredentialSource with the same rpId PublicKeyCredentialSource.getRpid

Link copied to clipboard
private fun migrate(sharedPreferences: SharedPreferences): SharedPreferences

Migrate data from SecuredSharedPreferences to EncryptedSharePreference

Link copied to clipboard

Persist the PublicKeyCredentialSource, it overrides the existing PublicKeyCredentialSource with the same PublicKeyCredentialSource.getUserHandle