LockdownPassphraseStore

Encrypted per-device storage for lockdown passphrases.

Platform implementations should use secure storage (e.g., EncryptedSharedPreferences on Android, Keychain on iOS). Passphrase access is NOT gated behind biometric authentication so that auto-unlock can run in the background without user interaction.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun clearPassphrase(deviceAddress: String)

Clears the stored passphrase for the given device address.

Link copied to clipboard
abstract fun getPassphrase(deviceAddress: String): StoredPassphrase?

Retrieves the stored passphrase for the given device address, or null if not stored.

Link copied to clipboard
abstract fun savePassphrase(deviceAddress: String, passphrase: String, boots: Int, hours: Int, maxSessionSeconds: Int = 0)

Saves the passphrase and TTL parameters for the given device address.