Companion

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

Functions

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

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

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

Creates a password store isolated by both serviceName and accountName.

Link copied to clipboard
fun PasswordStore.Companion.forCurrentPlatform(context: Context, serviceName: String, accountName: String = serviceName): PasswordStore

Creates an app-private password store isolated by serviceName and accountName, encrypted with its own non-exportable Android Keystore AES-256-GCM key. Like the CredentialKeychain overload, ciphertext lives under Context.getNoBackupFilesDir and is excluded from backup.