Record Class PasswordChangeResult.Succeeded
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.change.PasswordChangeResult.Succeeded
- All Implemented Interfaces:
PasswordChangeResult
- Enclosing interface:
PasswordChangeResult
public static record PasswordChangeResult.Succeeded(SessionHandlingDecision sessionDecision)
extends Record
implements PasswordChangeResult
Password successfully changed.
sessionDecision is the
recommended action for the calling adapter.-
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
ConstructorsConstructorDescriptionSucceeded(SessionHandlingDecision sessionDecision) Creates an instance of aSucceededrecord 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.Returns the value of thesessionDecisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Succeeded
Creates an instance of aSucceededrecord class.- Parameters:
sessionDecision- the value for thesessionDecisionrecord 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). -
sessionDecision
Returns the value of thesessionDecisionrecord component.- Returns:
- the value of the
sessionDecisionrecord component
-