Record Class PasswordChangeResult.Blocked
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.change.PasswordChangeResult.Blocked
- All Implemented Interfaces:
PasswordChangeResult
- Enclosing interface:
PasswordChangeResult
public static record PasswordChangeResult.Blocked(CredentialLifecycleDecision decision)
extends Record
implements PasswordChangeResult
The current lifecycle status forbids credential changes (e.g.
DISABLED, COMPROMISED).-
Nested Class Summary
Nested classes/interfaces inherited from interface PasswordChangeResult
PasswordChangeResult.Blocked, PasswordChangeResult.Conflict, PasswordChangeResult.CurrentPasswordRejected, PasswordChangeResult.NewPasswordRejected, PasswordChangeResult.NotFound, PasswordChangeResult.SucceededModifier and TypeInterfaceDescriptionstatic final recordThe current lifecycle status forbids credential changes (e.g.static final recordA concurrent password change won the compare-and-swap race.static final recordRe-authentication failed — the supplied current password does not verify (CWE-620).static final recordThe new password violated the input policy (length, control chars, etc.) and was rejected before hashing.static final recordNo credential exists under the supplied username.static final recordPassword successfully changed. -
Constructor Summary
ConstructorsConstructorDescriptionBlocked(CredentialLifecycleDecision decision) Creates an instance of aBlockedrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondecision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Blocked
Creates an instance of aBlockedrecord class.- Parameters:
decision- the value for thedecisionrecord 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). -
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-