Enum Class PasscodeRuleException.ErrorCode
java.lang.Object
java.lang.Enum<PasscodeRuleException.ErrorCode>
com.thalesgroup.gemalto.fido2.authenticator.passcode.PasscodeRuleException.ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<PasscodeRuleException.ErrorCode>,Constable
- Enclosing class:
- PasscodeRuleException
Defines the specific error codes for passcode rule violations.
- Since:
- 1.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe passcode length is not within the specified range.The passcode contains a non-numeric character.The passcode is a palindrome.The passcode is a series.The passcode is uniform. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Gets the integer value of the error code.Gets the descriptive message for the error code.Returns the enum constant of this class with the specified name.static PasscodeRuleException.ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR_PALINDROME
The passcode is a palindrome. -
ERROR_SERIES
The passcode is a series. -
ERROR_UNIFORM
The passcode is uniform. -
ERROR_NON_NUMERIC
The passcode contains a non-numeric character. -
ERROR_LENGTH
The passcode length is not within the specified range.
-
-
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
-
getCode
public int getCode()Gets the integer value of the error code.- Returns:
- The integer representation of the error code.
- Since:
- 1.3.0
-
getMessage
Gets the descriptive message for the error code.- Returns:
- The error message.
- Since:
- 1.3.0
-