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: WebAuthByteArray, credentialId: WebAuthByteArray, publicKeyCose: WebAuthByteArray, signatureCount: Long)

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

Link copied to clipboard
open override fun getCredentialIdsForUsername(username: String): Set<PublicKeyCredentialDescriptor>
Link copied to clipboard
Link copied to clipboard
open override fun getUsernameForUserHandle(userHandle: WebAuthByteArray): Optional<String>
Link copied to clipboard
open override fun lookup(credentialId: WebAuthByteArray, userHandle: WebAuthByteArray): Optional<RegisteredCredential>
Link copied to clipboard
open override fun lookupAll(credentialId: WebAuthByteArray): Set<RegisteredCredential>
Link copied to clipboard
open override fun updateSignatureCount(credentialId: WebAuthByteArray, newCount: Long)

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