Options

data class Options(val protection: FileCredentialStore.Protection = Protection.WHEN_UNLOCKED, val keyAlias: String = FileCredentialStore.DEFAULT_KEY_ALIAS)(source)

How a FileCredentialStore encrypts its records: by default under a key that works only while the device is unlocked.

Constructors

Link copied to clipboard
constructor(protection: FileCredentialStore.Protection = Protection.WHEN_UNLOCKED, keyAlias: String = FileCredentialStore.DEFAULT_KEY_ALIAS)

Properties

Link copied to clipboard

The Keystore alias of the key the records are encrypted under. Deleting it makes every record unreadable. The key is made with protection on first use, and keeps it: a store with another protection needs another alias.

Link copied to clipboard

When records can be read and written.