Package-level declarations
Types
Link copied to clipboard
Room-backed DefaultCredentialIdStore that persists the default credential ID in the same TokenDatabase used by RoomTokenStorage.
Link copied to clipboard
class RoomTokenStorage(database: TokenDatabase, encryptionHandler: TokenEncryptionHandler, configuration: OAuth2ClientConfiguration) : TokenStorage
Cross-platform TokenStorage implementation backed by Room.
Link copied to clipboard
Cross-platform Room database for persisting OAuth2 tokens.
Link copied to clipboard
expect object TokenDatabaseConstructor : <ERROR CLASS> ERROR CLASS: Symbol not found for RoomDatabaseConstructor<com/okta/authfoundation/credential/kmp/storage/TokenDatabase>
Room KMP constructor for TokenDatabase.
Functions
Link copied to clipboard
fun createEncryptedTokenStorage(configuration: OAuth2ClientConfiguration, dbPath: String = ".okta", encryptionKeyProvider: () -> SecretKey? = null): RoomTokenStorage
Creates a RoomTokenStorage for JVM applications with AES-256-GCM encryption.
Link copied to clipboard
Creates a TokenDatabase for JVM applications using file-based SQLite.