Enum EncryptionState
-
- All Implemented Interfaces:
public enum EncryptionState
Describes different encryption states associated with the encryption key generation mechanisms.
1. INIT-- When the alias is new, and no encryption key has been created. 2. NO_PASSCODE-- A secondary encryption key is generated randomly. This secondary encryption key is encrypted using the
generated from Android Key Store and securely persisted. 3. PASSCODE_ONLY-- ASecret Key
is generated using PBKDF2 (Password-Based Key Derivation Function 2)] from the passcode, and then a secondary key is generated randomly. This secondary encryption key is then encrypted using the PBKDF2 secret key and securely persisted. This is the most secure option because the secret key generated from the passcode is not stored on the device. 4. PASSCODE_BIOMETRIC-- The application, a. Gets the initial cipher fromSecret Key
. b. Passes the cipher to AndroidEncryptionUtil
for user authentication. c. The same cipher (user-authenticated) is passed back. Then a random secondary encryption key is generated similar toFingerprintManager
, but will encrypt it with the PBKDF2 secret key and separately with the cipher also.PASSCODE_ONLY
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INIT
NO_PASSCODE
PASSCODE_ONLY
PASSCODE_BIOMETRIC
-
Method Summary
Modifier and Type Method Description static Array<EncryptionState>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static EncryptionState
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<EncryptionState> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static EncryptionState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-