Companion

Platform-specific factories for creating an application-scoped key store.

Functions

Link copied to clipboard
fun forCurrentPlatform(serviceName: String, accountName: String = serviceName): HardwareKeyStore

Creates a key store isolated by serviceName and accountName using default KeychainOptions. See the three-argument overload for details.

fun forCurrentPlatform(serviceName: String, accountName: String, options: KeychainOptions): HardwareKeyStore

Creates a key store isolated by both serviceName and accountName. Unlike the other stores, Android needs no Context: keys live only in Android Keystore. Desktop JVM returns a store whose operations throw KeychainUnavailableException with reason Unsupported.