Package com.iizix.passwordpolicy
Enum Class PasswordPolicyResult.ReturnCode
java.lang.Object
java.lang.Enum<PasswordPolicyResult.ReturnCode>
com.iizix.passwordpolicy.PasswordPolicyResult.ReturnCode
- All Implemented Interfaces:
Serializable
,Comparable<PasswordPolicyResult.ReturnCode>
,Constable
- Enclosing class:
PasswordPolicyResult
Enum of possible values of the result.
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionPassword must have a digit.Password is insecure with explanation as to why.Password is insecure without explanation as to why.Password is insecure: warning message.Password must have a 'symbol' (i.e.Password length must be minimum %d characters.The last %d passwords must be unique.Password must have at least one lower case and one upper case character.Password is valid for the policy in question.Field Summary
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PasswordPolicyResult.ReturnCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
VALID
Password is valid for the policy in question.TOO_SHORT
Password length must be minimum %d characters.DIGIT_REQUIRED
Password must have a digit.SYMBOL_REQUIRED
Password must have a 'symbol' (i.e. not 0-9, a-z or A-Z).UPPER_AND_LOWER_CASE_REQUIRED
Password must have at least one lower case and one upper case character.UNIQUE_PASSWORD_HISTORY
The last %d passwords must be unique.PASSWORD_INSECURE
Password is insecure with explanation as to why.PASSWORD_INSECURE_WARNING
Password is insecure: warning message.PASSWORD_INSECURE_NO_EXPLANATION
Password is insecure without explanation as to why.
Field Details
englishText
The English text.textID
The text ID.
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