Record Class OidcClient.TokenResponse
java.lang.Object
java.lang.Record
io.fluxzero.idp.client.OidcClient.TokenResponse
- Record Components:
idToken- ID token intended for the configured client idaccessToken- access token intended for the configured resource audiencetokenType- token type, normallyBearerexpiresIn- lifetime reported by the tenant in secondsscope- scopes granted by the tenantjson- complete response payload for applications that need provider-specific fields
- Enclosing class:
OidcClient
-
Constructor Summary
ConstructorsConstructorDescriptionTokenResponse(String idToken, String accessToken, String tokenType, long expiresIn, String scope, com.fasterxml.jackson.databind.JsonNode json) Creates an instance of aTokenResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresInrecord component.final inthashCode()Returns a hash code value for this object.idToken()Returns the value of theidTokenrecord component.com.fasterxml.jackson.databind.JsonNodejson()Returns the value of thejsonrecord component.scope()Returns the value of thescoperecord component.Returns the value of thetokenTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenResponse
public TokenResponse(String idToken, String accessToken, String tokenType, long expiresIn, String scope, com.fasterxml.jackson.databind.JsonNode json) Creates an instance of aTokenResponserecord class.- Parameters:
idToken- the value for theidTokenrecord componentaccessToken- the value for theaccessTokenrecord componenttokenType- the value for thetokenTyperecord componentexpiresIn- the value for theexpiresInrecord componentscope- the value for thescoperecord componentjson- the value for thejsonrecord 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. -
idToken
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
tokenType
-
expiresIn
-
scope
-
json
-