Record Class EmailVerificationService.IssuedToken
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.accountlifecycle.EmailVerificationService.IssuedToken
- Record Components:
plainToken- plain token valuerecord- persisted record (hash + metadata)
- Enclosing class:
EmailVerificationService
public static record EmailVerificationService.IssuedToken(String plainToken, EmailVerificationTokenRecord record)
extends Record
Tuple returned from
request: the plain token
(caller forwards it via the notification sender) and the
persisted record (handy for tests / audit hooks).-
Constructor Summary
ConstructorsConstructorDescriptionIssuedToken(String plainToken, EmailVerificationTokenRecord record) Validates the 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 theplainTokenrecord component.record()Returns the value of therecordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IssuedToken
Validates the components.
-
-
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). -
plainToken
Returns the value of theplainTokenrecord component.- Returns:
- the value of the
plainTokenrecord component
-
record
-