SqlDelightIssuanceSessionStore

class SqlDelightIssuanceSessionStore(queries: WalletPersistenceQueries) : AtomicWalletIssuanceSessionCreationStore

SQLCipher-backed storage for sensitive OpenID4VCI continuation records.

Constructors

Link copied to clipboard
constructor(queries: WalletPersistenceQueries)

Functions

Link copied to clipboard
open suspend override fun compareAndSet(expected: WalletIssuanceSessionRecord, replacement: WalletIssuanceSessionRecord?): Boolean

Claims or checkpoints a continuation only when the persisted snapshot is unchanged.

Link copied to clipboard
open suspend override fun get(id: String): WalletIssuanceSessionRecord?

Returns the encrypted continuation record identified by id, when present.

Link copied to clipboard
open suspend override fun list(): List<WalletIssuanceSessionRecord>

Returns all encrypted continuation records currently retained by the wallet.

Link copied to clipboard
open suspend override fun put(record: WalletIssuanceSessionRecord)

Inserts or replaces an encrypted continuation record.

Link copied to clipboard
open suspend override fun putIfAbsent(record: WalletIssuanceSessionRecord): Boolean

Atomically inserts the encrypted continuation record if its ID is absent. Returns true when inserted, or false when an existing record was preserved.

Link copied to clipboard
open suspend override fun remove(id: String): Boolean

Removes the record identified by id and reports whether it existed.