Record Class UserSessionIdAndClientSessionId

java.lang.Object
java.lang.Record
org.keycloak.models.jpa.session.UserSessionIdAndClientSessionId
Record Components:
userSessionId - the user session ID (never null)
clientSessionId - the client ID for internal clients, or "external" for external clients (can be null from LEFT JOIN)
clientStorageProvider - the storage provider for external clients (can be null from LEFT JOIN)
externalClientId - the external client ID (can be null from LEFT JOIN)

public record UserSessionIdAndClientSessionId(String userSessionId, String clientSessionId, String clientStorageProvider, String externalClientId) extends Record
Record representing a AuthenticatedClientSessionModel, with user session ID and its associated client session ID.
  • Constructor Details

    • UserSessionIdAndClientSessionId

      public UserSessionIdAndClientSessionId(String userSessionId, String clientSessionId, String clientStorageProvider, String externalClientId)
      Creates an instance of a UserSessionIdAndClientSessionId record class.
      Parameters:
      userSessionId - the value for the userSessionId record component
      clientSessionId - the value for the clientSessionId record component
      clientStorageProvider - the value for the clientStorageProvider record component
      externalClientId - the value for the externalClientId 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.
    • userSessionId

      public String userSessionId()
      Returns the value of the userSessionId record component.
      Returns:
      the value of the userSessionId record component
    • clientSessionId

      public String clientSessionId()
      Returns the value of the clientSessionId record component.
      Returns:
      the value of the clientSessionId record component
    • clientStorageProvider

      public String clientStorageProvider()
      Returns the value of the clientStorageProvider record component.
      Returns:
      the value of the clientStorageProvider record component
    • externalClientId

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