Enum Class SignatureType
- All Implemented Interfaces:
Serializable,Comparable<SignatureType>,Constable
Response enum for PowerAuth Signature Types.
- 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 TypeMethodDescriptionstatic SignatureTypeenumFromString(String value) Get enum value from provided string.static SignatureTypeReturns the enum constant of this class with the specified name.static SignatureType[]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
-
enumFromString
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.
-