InMemoryCredentialRepo

class InMemoryCredentialRepo(val domain: String = "localhost", val applicationName: String = "Partials Test", val origins: Set<String> = setOf("http://localhost:2500")) : PartialsCredentialRepository

Constructors

Link copied to clipboard
constructor(domain: String = "localhost", applicationName: String = "Partials Test", origins: Set<String> = setOf("http://localhost:2500"))

Properties

Link copied to clipboard
open override val applicationName: String
Link copied to clipboard
open override val domain: String
Link copied to clipboard
open override val origins: Set<String>

Functions

Link copied to clipboard
open override fun addCredential(username: String, userHandle: ByteArray, credentialId: ByteArray, credentialRecord: CredentialRecord)

Call this after a successful registration to persist the new credential.

Link copied to clipboard
open override fun getCredentialsForUsername(username: String): Set<ByteArray>
Link copied to clipboard
open override fun getUsernameForUserHandle(userHandle: ByteArray): String?
Link copied to clipboard
open override fun lookup(credentialId: ByteArray): StoredCredential?
Link copied to clipboard
open override fun updateSignatureCount(credentialId: ByteArray, newCount: Long)

Call this after a successful authentication to update the signature counter.