Enum Class PowerAuthDerivedKey

java.lang.Object
java.lang.Enum<PowerAuthDerivedKey>
io.getlime.security.powerauth.crypto.lib.enums.PowerAuthDerivedKey
All Implemented Interfaces:
Serializable, Comparable<PowerAuthDerivedKey>, Constable

public enum PowerAuthDerivedKey extends Enum<PowerAuthDerivedKey>
Enum with a derived key identifier and indexes.
Author:
Petr Dvorak, petr@wultra.com
  • Enum Constant Details

    • SIGNATURE_POSSESSION

      public static final PowerAuthDerivedKey SIGNATURE_POSSESSION
      Value related to the possession factor signature key, value = 1
    • SIGNATURE_KNOWLEDGE

      public static final PowerAuthDerivedKey SIGNATURE_KNOWLEDGE
      Value related to the knowledge factor signature key, value = 2
    • SIGNATURE_BIOMETRY

      public static final PowerAuthDerivedKey SIGNATURE_BIOMETRY
      Value related to the biometry factor signature key, value = 3
    • TRANSPORT

      public static final PowerAuthDerivedKey TRANSPORT
      Value related to the master transport key, value = 1000
    • ENCRYPTED_VAULT

      public static final PowerAuthDerivedKey ENCRYPTED_VAULT
      Value related to the encrypted vault key, value = 2000
  • Method Details

    • values

      public static PowerAuthDerivedKey[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PowerAuthDerivedKey valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      public static PowerAuthDerivedKey valueOf(long index)
      Get enum instance from long value.
      Parameters:
      index - Enum value.
      Returns:
      Enum instance.
    • getIndex

      public byte[] getIndex()
      Get the byte array value of key index.
      Returns:
      Get the byte array value of key index.