Record Class PasswordResetRequested
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.PasswordResetRequested
- Record Components:
timestamp- UTC creation time; non-nullsubjectId- subject the token was issued for; non-blanktokenHash- hash of the issued token; non-blank
- All Implemented Interfaces:
AuditEvent
public record PasswordResetRequested(Instant timestamp, String subjectId, String tokenHash)
extends Record
implements AuditEvent
Emitted when a password-reset token is issued for a subject.
Carries the token hash (never the plain token) so log scrapers
can correlate the issue event with the later
PasswordResetCompleted consume event without ever
touching the credential material itself.
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordResetRequested(Instant timestamp, String subjectId, String tokenHash) Validates the record components. -
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 thesubjectIdrecord component.Returns the value of thetimestamprecord component.Returns the value of thetokenHashrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PasswordResetRequested
-
-
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). -
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceAuditEvent- Returns:
- the value of the
timestamprecord component
-
subjectId
-
tokenHash
-