Record Class TokenResponse
java.lang.Object
java.lang.Record
pro.gravit.launchserver.auth.core.openid.TokenResponse
-
Constructor Summary
ConstructorsConstructorDescriptionTokenResponse(String accessToken, long accessTokenExpiresIn, String refreshToken, long refreshTokenExpiresIn) Creates an instance of aTokenResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.longReturns the value of theaccessTokenExpiresInrecord 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 therefreshTokenrecord component.longReturns the value of therefreshTokenExpiresInrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenResponse
public TokenResponse(String accessToken, long accessTokenExpiresIn, String refreshToken, long refreshTokenExpiresIn) Creates an instance of aTokenResponserecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentaccessTokenExpiresIn- the value for theaccessTokenExpiresInrecord componentrefreshToken- the value for therefreshTokenrecord componentrefreshTokenExpiresIn- the value for therefreshTokenExpiresInrecord 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. -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
accessTokenExpiresIn
public long accessTokenExpiresIn()Returns the value of theaccessTokenExpiresInrecord component.- Returns:
- the value of the
accessTokenExpiresInrecord component
-
refreshToken
Returns the value of therefreshTokenrecord component.- Returns:
- the value of the
refreshTokenrecord component
-
refreshTokenExpiresIn
public long refreshTokenExpiresIn()Returns the value of therefreshTokenExpiresInrecord component.- Returns:
- the value of the
refreshTokenExpiresInrecord component
-