Record Class PasswordResetLink.Claim
java.lang.Object
java.lang.Record
com.iizix.server.security.PasswordResetLink.Claim
- Record Components:
userID- The user ID the link resets.passwordMark- The mark of the password hash the link was issued for,PasswordResetLink.mark(String).expiresAt- The expiry time, milliseconds since the epoch.
- Enclosing class:
PasswordResetLink
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepasswordMarkrecord component.final StringtoString()Returns a string representation of this record class.longuserID()Returns the value of theuserIDrecord component.
Constructor Details
Claim
Creates an instance of aClaimrecord class.- Parameters:
userID- the value for theuserIDrecord componentpasswordMark- the value for thepasswordMarkrecord componentexpiresAt- the value for theexpiresAtrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.userID
passwordMark
Returns the value of thepasswordMarkrecord component.- Returns:
- the value of the
passwordMarkrecord component
expiresAt