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 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 a RefreshTokenContext record class.
      Parameters:
      oldRefreshToken - the value for the oldRefreshToken record component
      tokenManager - the value for the tokenManager record component
      connection - the value for the connection record component
      realm - the value for the realm record component
      authorizedClient - the value for the authorizedClient record component
      event - the value for the event record component
      headers - the value for the headers record component
      scopeParameter - the value for the scopeParameter record component
      resourceParameter - the value for the resourceParameter record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • oldRefreshToken

      public RefreshToken oldRefreshToken()
      Returns the value of the oldRefreshToken record component.
      Returns:
      the value of the oldRefreshToken record component
    • tokenManager

      public TokenManager tokenManager()
      Returns the value of the tokenManager record component.
      Returns:
      the value of the tokenManager record component
    • connection

      public ClientConnection connection()
      Returns the value of the connection record component.
      Returns:
      the value of the connection record component
    • realm

      public RealmModel realm()
      Returns the value of the realm record component.
      Returns:
      the value of the realm record component
    • authorizedClient

      public ClientModel authorizedClient()
      Returns the value of the authorizedClient record component.
      Returns:
      the value of the authorizedClient record component
    • event

      public EventBuilder event()
      Returns the value of the event record component.
      Returns:
      the value of the event record component
    • headers

      public jakarta.ws.rs.core.HttpHeaders headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component
    • scopeParameter

      public String scopeParameter()
      Returns the value of the scopeParameter record component.
      Returns:
      the value of the scopeParameter record component
    • resourceParameter

      public String resourceParameter()
      Returns the value of the resourceParameter record component.
      Returns:
      the value of the resourceParameter record component