Enum Class PasswordInputViolation

java.lang.Object
java.lang.Enum<PasswordInputViolation>
com.svenruppert.jsentinel.credential.input.PasswordInputViolation
All Implemented Interfaces:
Serializable, Comparable<PasswordInputViolation>, Constable

public enum PasswordInputViolation extends Enum<PasswordInputViolation>
Reason that input was rejected by the PasswordInputValidator.

The enum values are deliberately structural so audit sinks and registration-form messages can specialise without ever embedding the supplied password material (CWE-209 / CWE-522).

  • Enum Constant Details

    • TOO_SHORT

      public static final PasswordInputViolation TOO_SHORT
    • TOO_LONG

      public static final PasswordInputViolation TOO_LONG
    • CONTAINS_CONTROL_CHARACTER

      public static final PasswordInputViolation CONTAINS_CONTROL_CHARACTER
    • CONTAINS_USERNAME

      public static final PasswordInputViolation CONTAINS_USERNAME
      Password contains the user's username (case-insensitive).
    • CONTAINS_EMAIL_LOCAL_PART

      public static final PasswordInputViolation CONTAINS_EMAIL_LOCAL_PART
      Password contains the local part of the user's email address.
    • CONTAINS_EMAIL_DOMAIN

      public static final PasswordInputViolation CONTAINS_EMAIL_DOMAIN
      Password contains the domain part of the user's email address.
    • CONTAINS_FORBIDDEN_TERM

      public static final PasswordInputViolation CONTAINS_FORBIDDEN_TERM
      Password contains an operator-supplied forbidden term.
  • Method Details

    • values

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