Record Class CompromisedPasswordResult.CheckFailed
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.compromised.CompromisedPasswordResult.CheckFailed
- All Implemented Interfaces:
CompromisedPasswordResult
- Enclosing interface:
CompromisedPasswordResult
public static record CompromisedPasswordResult.CheckFailed(CompromisedPasswordResult.FailureReason reason)
extends Record
implements CompromisedPasswordResult
The checker could not produce a verdict — network outage,
malformed response, timeout, etc. The caller applies
CompromisedPasswordPolicy.onFailure() to decide
whether to allow, warn or block the change.
The reason is a structural identifier (not free-form text) so audit sinks can summarise without leaking secrets.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CompromisedPasswordResult
CompromisedPasswordResult.CheckFailed, CompromisedPasswordResult.Clean, CompromisedPasswordResult.FailureReason, CompromisedPasswordResult.PwnedModifier and TypeInterfaceDescriptionstatic final recordThe checker could not produce a verdict — network outage, malformed response, timeout, etc.static final recordThe candidate password is not present in the checker's data source.static enumStructured failure reason — never carries password material, URLs or response bodies.static final recordThe candidate password matched a known compromised entry. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aCheckFailedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CheckFailed
Creates an instance of aCheckFailedrecord class.- Parameters:
reason- the value for thereasonrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-