SqlDelightCredentialStore

class SqlDelightCredentialStore : WalletCredentialStore, CredentialStatusInventory

SQLDelight-backed implementation of WalletCredentialStore for mobile wallets.

Constructors

Link copied to clipboard
constructor(queries: WalletPersistenceQueries)

Opens the foreground credential store in the already-open database.

Functions

Link copied to clipboard
open suspend override fun acknowledgeStatusNotice(credentialId: String, version: String): Boolean
Link copied to clipboard
open suspend override fun addCredential(entry: StoredCredential)

Stores a credential and its display metadata.

Link copied to clipboard
open suspend override fun compareAndSetCredentialStatus(credential: StoredCredential, expected: CredentialStatusStoredRecord?, updated: CredentialStatusStoredRecord): Boolean
Link copied to clipboard
open suspend override fun compareAndSetCredentialStatusAndNotice(credential: StoredCredential, expected: CredentialStatusStoredRecord?, updated: CredentialStatusStoredRecord, transition: (CredentialStatusNoticeState?) -> CredentialStatusNoticeState?): CredentialStatusCommit
Link copied to clipboard
open suspend override fun getCredential(id: String): StoredCredential?

Loads a stored credential by wallet-local identifier.

Link copied to clipboard
open suspend override fun listCredentials(): Flow<StoredCredential>

Emits all stored credentials from the mobile database.

Link copied to clipboard
open suspend fun listCredentialsAsList(): List<StoredCredential>
Link copied to clipboard
open suspend override fun readCredentialStatus(credentialId: String): PersistedCredentialStatus?
Link copied to clipboard
open suspend override fun readCredentialStatusRecord(credentialId: String): CredentialStatusStoredRecord?
Link copied to clipboard
open suspend override fun readStatusInput(id: String): CredentialStatusInput?
Link copied to clipboard
open suspend override fun removeCredential(id: String): Boolean

Removes a credential by wallet-local identifier.

Link copied to clipboard
open suspend override fun statusPage(afterId: String?, limit: Int): List<CredentialStatusInput>