Record Class StoreBackedRememberMeService.IssuedToken
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.authentication.StoreBackedRememberMeService.IssuedToken
- Record Components:
plainToken- plain token valuerecord- persisted record (hash + metadata)
- Enclosing class:
StoreBackedRememberMeService
public static record StoreBackedRememberMeService.IssuedToken(String plainToken, RememberMeTokenRecord record)
extends Record
Tuple returned from
StoreBackedRememberMeService.issue(SubjectId, Duration): the plain token (caller
passes it to the client carrier and drops it) and the
persisted record (handy for tests / audit hooks).-
Constructor Summary
ConstructorsConstructorDescriptionIssuedToken(String plainToken, RememberMeTokenRecord 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
-