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

public static enum PasswordStrength.Format extends Enum<PasswordStrength.Format>
密码格式枚举

定义密码中允许的字符类型组合

  • Enum Constant Details

    • NUMERIC

      public static final PasswordStrength.Format NUMERIC
      仅包含数字字符(0-9)
    • LETTER

      public static final PasswordStrength.Format LETTER
      仅包含字母字符(a-z, A-Z)
    • NUMERIC_LETTER

      public static final PasswordStrength.Format NUMERIC_LETTER
      包含数字和字母字符
    • NUMERIC_SPECIAL_CHARACTER

      public static final PasswordStrength.Format NUMERIC_SPECIAL_CHARACTER
      包含数字和特殊字符
    • LETTER_SPECIAL_CHARACTER

      public static final PasswordStrength.Format LETTER_SPECIAL_CHARACTER
      包含字母和特殊字符
    • NUMERIC_LETTER_SPECIAL_CHARACTER

      public static final PasswordStrength.Format NUMERIC_LETTER_SPECIAL_CHARACTER
      包含数字、字母和特殊字符(最强密码格式)
  • Method Details

    • values

      public static PasswordStrength.Format[] 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

      public static PasswordStrength.Format valueOf(String name)
      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 name
      NullPointerException - if the argument is null