Enum Class PasswordStrength.Format
java.lang.Object
java.lang.Enum<PasswordStrength.Format>
cn.dinodev.spring.commons.validation.constraints.PasswordStrength.Format
- All Implemented Interfaces:
Serializable,Comparable<PasswordStrength.Format>,Constable
- Enclosing class:
PasswordStrength
密码格式枚举
定义密码中允许的字符类型组合
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription仅包含字母字符(a-z, A-Z)包含字母和特殊字符仅包含数字字符(0-9)包含数字和字母字符包含数字、字母和特殊字符(最强密码格式)包含数字和特殊字符 -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordStrength.FormatReturns the enum constant of this class with the specified name.static PasswordStrength.Format[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NUMERIC
仅包含数字字符(0-9) -
LETTER
仅包含字母字符(a-z, A-Z) -
NUMERIC_LETTER
包含数字和字母字符 -
NUMERIC_SPECIAL_CHARACTER
包含数字和特殊字符 -
LETTER_SPECIAL_CHARACTER
包含字母和特殊字符 -
NUMERIC_LETTER_SPECIAL_CHARACTER
包含数字、字母和特殊字符(最强密码格式)
-
-
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
-