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
Enum with a derived key identifier and indexes.
- Author:
- Petr Dvorak, petr@wultra.com
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionValue related to the encrypted vault key, value = 2000Value related to the biometry factor signature key, value = 3Value related to the knowledge factor signature key, value = 2Value related to the possession factor signature key, value = 1Value related to the master transport key, value = 1000 -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getIndex()Get the byte array value of key index.static PowerAuthDerivedKeyvalueOf(long index) Get enum instance from long value.static PowerAuthDerivedKeyReturns the enum constant of this class with the specified name.static PowerAuthDerivedKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIGNATURE_POSSESSION
Value related to the possession factor signature key, value = 1 -
SIGNATURE_KNOWLEDGE
Value related to the knowledge factor signature key, value = 2 -
SIGNATURE_BIOMETRY
Value related to the biometry factor signature key, value = 3 -
TRANSPORT
Value related to the master transport key, value = 1000 -
ENCRYPTED_VAULT
Value related to the encrypted vault key, value = 2000
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
valueOf
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.
-