Enum Class PasswordGenerator.PasswordStrength
java.lang.Object
java.lang.Enum<PasswordGenerator.PasswordStrength>
de.gustavblass.commons.crypto.PasswordGenerator.PasswordStrength
- All Implemented Interfaces:
Serializable,Comparable<PasswordGenerator.PasswordStrength>,Constable
- Enclosing class:
PasswordGenerator
public static enum PasswordGenerator.PasswordStrength
extends Enum<PasswordGenerator.PasswordStrength>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe password is not too hard to guess.The password is hard to guess.The password is very hard to guess.The strength of the password could not be estimated.The password is almost impossible to guess.The password is easy to guess. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PasswordGenerator.PasswordStrength[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The strength of the password could not be estimated. -
WEAK
The password is easy to guess. -
FAIR
The password is not too hard to guess. -
GOOD
The password is hard to guess. -
STRONG
The password is very hard to guess. -
VERY_STRONG
The password is almost impossible to guess.
-
-
Field Details
-
label
-
-
Constructor Details
-
PasswordStrength
-
-
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
-