CredentialStore

The wallet's credentials, as opaque records kept by ID under the platform's data protection. An exception it throws reaches Go and comes back as a WalletException.Code.platform error.

Inheritors

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
abstract fun delete(id: String)

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

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

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

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

The record stored under id, or null.

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

Every record.