OathStorage

Interface for OATH-specific storage operations. Extends the base MfaStorage interface with OATH-specific functionality.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun clearOathCredentials()

Clear all OATH credentials from the storage.

Link copied to clipboard
abstract suspend fun getAllOathCredentials(): List<OathCredential>

Get all OATH credentials.

Link copied to clipboard
abstract suspend fun getCredentialByIssuerAndAccount(issuer: String, accountName: String): OathCredential?

Retrieve an OATH credential by issuer and account name. This method performs a case-sensitive lookup to detect duplicate credentials.

Link copied to clipboard
abstract suspend fun removeOathCredential(credentialId: String): Boolean

Remove an OATH credential by its ID.

Link copied to clipboard
abstract suspend fun retrieveOathCredential(credentialId: String): OathCredential?

Retrieve an OATH credential by its ID.

Link copied to clipboard
abstract suspend fun storeOathCredential(credential: OathCredential)

Store an OATH credential.