MobileWalletKeyStore

interface MobileWalletKeyStore : WalletKeyStore

Mobile key store that can report the immutable authorization policy of a persisted key.

Inheritors

Functions

Link copied to clipboard
open suspend fun addCrypto2Key(key: Key): String
Link copied to clipboard
abstract suspend fun addKey(key: Key): String
Link copied to clipboard
open suspend fun getCrypto2Key(keyId: String, usages: Set<KeyUsage>): Key?
Link copied to clipboard
open suspend fun getDefaultCrypto2Key(usages: Set<KeyUsage>): Key?
Link copied to clipboard
open suspend fun getDefaultKey(): Key?
Link copied to clipboard
open suspend fun getDefaultKeyMaterial(usages: Set<KeyUsage>): WalletKeyStoreEntry?
Link copied to clipboard
abstract suspend fun getKey(keyId: String): Key?
Link copied to clipboard
open suspend fun getKeyMaterial(keyId: String, usages: Set<KeyUsage>): WalletKeyStoreEntry?
Link copied to clipboard
open suspend fun getPublicKeyMaterial(keyId: String): WalletPublicKeyMaterial?
Link copied to clipboard
abstract suspend fun keyUseAuthorizationPolicy(keyId: String): KeyUseAuthorizationPolicy?

Returns the persisted policy for keyId, or null when the key does not exist.

Link copied to clipboard
abstract suspend fun listKeys(): Flow<WalletKeyInfo>
Link copied to clipboard
open suspend fun listKeysAsList(): List<WalletKeyInfo>
Link copied to clipboard
abstract suspend fun removeKey(keyId: String): Boolean