SecretKeyEncryptorConfig

Configuration class for SecretKeyEncryptor. It contains various properties that can be set to configure the encryption process.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var context: Context

The Android context used for accessing system services.

Link copied to clipboard

Flag to enforce the use of an asymmetric key.

Link copied to clipboard

Flag to invalidate the key by biometric enrollment.

Link copied to clipboard
lateinit var keyAlias: String

The alias for the key in the Android keystore. enforceAsymmetricKey is set to true or failed to generate Android keystore secret key.

Link copied to clipboard

The logger instance for logging.

Link copied to clipboard

Flag to prefer StrongBox for key storage if available. For detail please refer to https://developer.android.com/privacy-and-security/keystore

Link copied to clipboard

The size of the symmetric key.

Link copied to clipboard

Flag to throw an exception when an encryption/decryption error occurs.

Functions

Link copied to clipboard
fun init()

Initializes the context if it's not already initialized.