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 
    Secret Key
    generated from Android Key Store and securely persisted. 3. PASSCODE_ONLY-- A
    Secret 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 from
    EncryptionUtil
    . b. Passes the cipher to Android
    FingerprintManager
    for user authentication. c. The same cipher (user-authenticated) is passed back. Then a random secondary encryption key is generated similar to
    PASSCODE_ONLY
    , but will encrypt it with the PBKDF2 secret key and separately with the cipher also.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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