Enum Class CheckFailurePolicy
java.lang.Object
java.lang.Enum<CheckFailurePolicy>
com.svenruppert.jsentinel.credential.compromised.CheckFailurePolicy
- All Implemented Interfaces:
Serializable, Comparable<CheckFailurePolicy>, Constable
Operator-configured behaviour when a
CompromisedPasswordChecker returns
CompromisedPasswordResult.CheckFailed.
Mirrors the language used in NIST SP 800-63B §5.1.1 and OWASP ASVS V2.1: a compromised-password check is a *control*, and the failure mode of that control must be a *deliberate* choice.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckFailurePolicyReturns the enum constant of this class with the specified name.static CheckFailurePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW
Treat a failed check asClean— the change proceeds. Default for online checkers where availability would otherwise cause an outage in the credential pipeline. -
WARN
Treat a failed check asCleanbut raise a structured audit event so operators can review later. -
BLOCK
Treat a failed check as a definitive negative outcome — the change is rejected. Suited for high-assurance deployments where a missing check is worse than a denied change.
-
-
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
-