InMemoryCredentialStore

A credential store in memory, for tests and development.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open val isDurable: Boolean

Whether records survive the app quitting. Receiving credentials needs a durable store unless the configuration is for development: it also keeps an authorization in progress while the holder is at the issuer's pages.

Functions

Link copied to clipboard
open override fun delete(id: String)

Deletes the record; deleting one that doesn't exist isn't an error.

Link copied to clipboard
open override fun put(id: String, record: ByteArray)

Stores record under id, replacing any record with that ID.

Link copied to clipboard
open override fun record(id: String): ByteArray?

The record stored under id, or null.

Link copied to clipboard
open override fun records(): List<ByteArray>

Every record.