Record Class TokenService.TokenPair
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.authentication.TokenService.TokenPair
- Record Components:
accessToken- plain access tokenaccessExpiresAt- access-token expiryrefreshToken- plain refresh tokenrefreshExpiresAt- refresh-token expirysubjectId- subject the pair authenticates
- Enclosing class:
TokenService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessExpiresAtrecord component.Returns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therefreshExpiresAtrecord component.Returns the value of therefreshTokenrecord component.Returns the value of thesubjectIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenPair
-
-
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). -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
accessExpiresAt
Returns the value of theaccessExpiresAtrecord component.- Returns:
- the value of the
accessExpiresAtrecord component
-
refreshToken
Returns the value of therefreshTokenrecord component.- Returns:
- the value of the
refreshTokenrecord component
-
refreshExpiresAt
Returns the value of therefreshExpiresAtrecord component.- Returns:
- the value of the
refreshExpiresAtrecord component
-
subjectId
-