Record Class ValidatedPasswordHash
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.password.policy.ValidatedPasswordHash
public record ValidatedPasswordHash(PasswordHashEnvelope envelope, PasswordHashPolicy validatedAgainst)
extends Record
Successful output of
PasswordHashValidator.validate(PasswordHashEnvelope, PasswordHashPolicy).
Pairs the parsed envelope with the policy it was checked against. Downstream stages (provider resolution, verification, rehash decision) consume only validated envelopes; the type acts as a compile-time marker that policy checks have already run.
-
Constructor Summary
ConstructorsConstructorDescriptionValidatedPasswordHash(PasswordHashEnvelope envelope, PasswordHashPolicy validatedAgainst) Creates an instance of aValidatedPasswordHashrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenvelope()Returns the value of theenveloperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.Returns the value of thevalidatedAgainstrecord component.
-
Constructor Details
-
ValidatedPasswordHash
Creates an instance of aValidatedPasswordHashrecord class.- Parameters:
envelope- the value for theenveloperecord componentvalidatedAgainst- the value for thevalidatedAgainstrecord 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). -
envelope
Returns the value of theenveloperecord component.- Returns:
- the value of the
enveloperecord component
-
validatedAgainst
Returns the value of thevalidatedAgainstrecord component.- Returns:
- the value of the
validatedAgainstrecord component
-