MapStore

interface MapStore<T, U>(source)

Provides a simple map of keys of type T to values of type U. Mainly used in OID4VCI to hold state in at.asitplus.wallet.lib.oauth2.SimpleAuthorizationService and WalletService. Can be implemented to provide replication across different instances of the enclosing application.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun get(key: T): U?

Implementers: Return the value associated with key

Link copied to clipboard
abstract suspend fun put(key: T, value: U)

Implementers: Associate key with value

Link copied to clipboard
abstract suspend fun remove(key: T): U?

Implementers: Return and remove the value associated with key