Record Class OAuth2AuthenticationModule.ServiceToken
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.modules.authentication.implementations.OAuth2AuthenticationModule.ServiceToken
- Enclosing class:
OAuth2AuthenticationModule
public static record OAuth2AuthenticationModule.ServiceToken(String accessToken, Instant expiresAt)
extends Record
An access token issued to a service principal, and when it expires.
-
Constructor Summary
ConstructorsConstructorDescriptionServiceToken(String accessToken, Instant expiresAt) Creates an instance of aServiceTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.toString()Never print the token.
-
Constructor Details
-
ServiceToken
-
-
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
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-