Enum Class PasswordInputViolation
java.lang.Object
java.lang.Enum<PasswordInputViolation>
com.svenruppert.jsentinel.credential.input.PasswordInputViolation
- All Implemented Interfaces:
Serializable, Comparable<PasswordInputViolation>, Constable
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPassword contains the domain part of the user's email address.Password contains the local part of the user's email address.Password contains an operator-supplied forbidden term.Password contains the user's username (case-insensitive). -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordInputViolationReturns the enum constant of this class with the specified name.static PasswordInputViolation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOO_SHORT
-
TOO_LONG
-
CONTAINS_CONTROL_CHARACTER
-
CONTAINS_USERNAME
Password contains the user's username (case-insensitive). -
CONTAINS_EMAIL_LOCAL_PART
Password contains the local part of the user's email address. -
CONTAINS_EMAIL_DOMAIN
Password contains the domain part of the user's email address. -
CONTAINS_FORBIDDEN_TERM
Password contains an operator-supplied forbidden term.
-
-
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
-