Record Class PasswordChangeResult.NewPasswordRejected
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.change.PasswordChangeResult.NewPasswordRejected
- All Implemented Interfaces:
PasswordChangeResult
- Enclosing interface:
PasswordChangeResult
public static record PasswordChangeResult.NewPasswordRejected(PasswordInputViolation violation)
extends Record
implements PasswordChangeResult
The new password violated the input policy (length, control chars,
etc.) and was rejected before hashing.
-
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
ConstructorsConstructorDescriptionNewPasswordRejected(PasswordInputViolation violation) Creates an instance of aNewPasswordRejectedrecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationrecord component.
-
Constructor Details
-
NewPasswordRejected
Creates an instance of aNewPasswordRejectedrecord class.- Parameters:
violation- the value for theviolationrecord 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). -
violation
Returns the value of theviolationrecord component.- Returns:
- the value of the
violationrecord component
-