KeyRingDao

interface KeyRingDao

CRUD and search access for KeyRingEntity rows.

Functions

Link copied to clipboard
abstract suspend fun delete(keyId: Long)

Deletes the key ring with keyId.

Link copied to clipboard
abstract suspend fun getAll(): List<KeyRingEntity>

Returns all key rings (non-reactive).

Link copied to clipboard
abstract suspend fun getById(keyId: Long): KeyRingEntity?

Finds a key ring by keyId, or null if absent.

Link copied to clipboard
abstract suspend fun insert(entity: KeyRingEntity)

Inserts or replaces a key ring row.

Link copied to clipboard
abstract suspend fun markRevoked(keyId: Long)
Link copied to clipboard
abstract fun observeAll(): Flow<List<KeyRingEntity>>

Observes all key rings ordered by KeyRingEntity.createdAt descending.

Link copied to clipboard
abstract suspend fun search(query: String): List<KeyRingEntity>

Substring search on KeyRingEntity.fingerprint.

Link copied to clipboard
abstract suspend fun setTrustLevel(keyId: Long, level: Int)