Enum Class PowerAuthSignatureTypes
java.lang.Object
java.lang.Enum<PowerAuthSignatureTypes>
io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes
- All Implemented Interfaces:
Serializable,Comparable<PowerAuthSignatureTypes>,Constable
Enum with signature type values.
- 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 ConstantDescription1FA signature using biometry factor key, value = "biometry"1FA signature using knowledge factor key, value = "knowledge"1FA signature using possession factor key, value = "possession"2FA signature using possession and biometry factor key, value = "possession_biometry"2FA signature using possession and knowledge factor key, value = "possession_knowledge"3FA signature using possession, knowledge and biometry factor key, value = "possession_knowledge_biometry" -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsName(String otherName) Check if the enum value has the same name as a given string.static PowerAuthSignatureTypesgetEnumFromString(String value) Get enum value from provided string.toString()static PowerAuthSignatureTypesReturns the enum constant of this class with the specified name.static PowerAuthSignatureTypes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POSSESSION
1FA signature using possession factor key, value = "possession" -
KNOWLEDGE
1FA signature using knowledge factor key, value = "knowledge" -
BIOMETRY
1FA signature using biometry factor key, value = "biometry" -
POSSESSION_KNOWLEDGE
2FA signature using possession and knowledge factor key, value = "possession_knowledge" -
POSSESSION_BIOMETRY
2FA signature using possession and biometry factor key, value = "possession_biometry" -
POSSESSION_KNOWLEDGE_BIOMETRY
3FA signature using possession, knowledge and biometry factor key, value = "possession_knowledge_biometry"
-
-
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
-
getEnumFromString
Get enum value from provided string. In case the provided value does not match any value, null value is returned.- Parameters:
value- String to get the enum value for.- Returns:
- Enum value.
-
equalsName
Check if the enum value has the same name as a given string.- Parameters:
otherName- Name to be checked.- Returns:
- True in case of enum value is equal to provided name.
-
toString
- Overrides:
toStringin classEnum<PowerAuthSignatureTypes>
-