Record Class RefreshTokenContext
java.lang.Object
java.lang.Record
org.keycloak.protocol.oidc.refresh.RefreshTokenContext
public record RefreshTokenContext(RefreshToken oldRefreshToken, TokenManager tokenManager, ClientConnection connection, RealmModel realm, ClientModel authorizedClient, EventBuilder event, jakarta.ws.rs.core.HttpHeaders headers, String scopeParameter, String resourceParameter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRefreshTokenContext(RefreshToken oldRefreshToken, TokenManager tokenManager, ClientConnection connection, RealmModel realm, ClientModel authorizedClient, EventBuilder event, jakarta.ws.rs.core.HttpHeaders headers, String scopeParameter, String resourceParameter) Creates an instance of aRefreshTokenContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizedClientrecord component.Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.jakarta.ws.rs.core.HttpHeadersheaders()Returns the value of theheadersrecord component.Returns the value of theoldRefreshTokenrecord component.realm()Returns the value of therealmrecord component.Returns the value of theresourceParameterrecord component.Returns the value of thescopeParameterrecord component.Returns the value of thetokenManagerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RefreshTokenContext
public RefreshTokenContext(RefreshToken oldRefreshToken, TokenManager tokenManager, ClientConnection connection, RealmModel realm, ClientModel authorizedClient, EventBuilder event, jakarta.ws.rs.core.HttpHeaders headers, String scopeParameter, String resourceParameter) Creates an instance of aRefreshTokenContextrecord class.- Parameters:
oldRefreshToken- the value for theoldRefreshTokenrecord componenttokenManager- the value for thetokenManagerrecord componentconnection- the value for theconnectionrecord componentrealm- the value for therealmrecord componentauthorizedClient- the value for theauthorizedClientrecord componentevent- the value for theeventrecord componentheaders- the value for theheadersrecord componentscopeParameter- the value for thescopeParameterrecord componentresourceParameter- the value for theresourceParameterrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
oldRefreshToken
Returns the value of theoldRefreshTokenrecord component.- Returns:
- the value of the
oldRefreshTokenrecord component
-
tokenManager
Returns the value of thetokenManagerrecord component.- Returns:
- the value of the
tokenManagerrecord component
-
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
realm
Returns the value of therealmrecord component.- Returns:
- the value of the
realmrecord component
-
authorizedClient
Returns the value of theauthorizedClientrecord component.- Returns:
- the value of the
authorizedClientrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
headers
public jakarta.ws.rs.core.HttpHeaders headers()Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
scopeParameter
Returns the value of thescopeParameterrecord component.- Returns:
- the value of the
scopeParameterrecord component
-
resourceParameter
Returns the value of theresourceParameterrecord component.- Returns:
- the value of the
resourceParameterrecord component
-