Enum Class PasswordCharacterSet

java.lang.Object
java.lang.Enum<PasswordCharacterSet>
org.panteleyev.commons.password.PasswordCharacterSet
All Implemented Interfaces:
Serializable, Comparable<PasswordCharacterSet>, Constable

public enum PasswordCharacterSet extends Enum<PasswordCharacterSet>
Defines password character sets.
  • Enum Constant Details

    • UPPER_CASE_LETTERS

      public static final PasswordCharacterSet UPPER_CASE_LETTERS
      Upper case letters.

      A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

    • LOWER_CASE_LETTERS

      public static final PasswordCharacterSet LOWER_CASE_LETTERS
      Lower case letters.

      a b c d e f g h i j k l m n o p q r s t u v w x y z

    • DIGITS

      public static final PasswordCharacterSet DIGITS
      Digits.

      0 1 2 3 4 5 6 7 8 9

    • SYMBOLS

      public static final PasswordCharacterSet SYMBOLS
      Symbols.

      @ # $ % & * ( ) - + = ^ . ,

  • Method Details

    • values

      public static PasswordCharacterSet[] 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 PasswordCharacterSet 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