BlockStorePassphraseProvider

class BlockStorePassphraseProvider(context: Context, initialPassphrase: String? = null, logger: Logger = Logger.logger) : PassphraseProvider

PassphraseProvider implementation that uses Android Block Store to securely store the passphrase. Throws exception if Block Store is not available.

Constructors

Link copied to clipboard
constructor(context: Context, initialPassphrase: String? = null, logger: Logger = Logger.logger)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun getPassphrase(): String

Gets the passphrase for encryption/decryption. If a passphrase doesn't exist yet, implementations should generate and store one.