SQLOathStorage

SQLite-based implementation of OathStorage. This class directly extends SQLiteStorage with OATH-specific functionality.

Constructors

Link copied to clipboard
constructor(config: SQLiteStorageConfig)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun clear()

Clear all data from the storage. This method clears all OATH credential tables.

Link copied to clipboard
open suspend override fun clearOathCredentials()

Clear all OATH credentials from the storage.

Link copied to clipboard
open suspend override fun close()

Close the OATH storage. This method closes the database connection.

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

Get all OATH credentials.

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

Retrieve an OATH credential by issuer and account name. Performs case-sensitive comparison to detect duplicate credentials.

Link copied to clipboard
open suspend override fun initialize()

Initialize the OATH storage. This method initializes the database and tables.

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

Remove an OATH credential by its ID.

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

Retrieve an OATH credential by its ID.

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

Store an OATH credential.