Package org.keycloak.models.jpa.session
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 Summary
ConstructorsConstructorDescriptionUserSessionIdAndClientSessionId(String userSessionId, String clientSessionId, String clientStorageProvider, String externalClientId) Creates an instance of aUserSessionIdAndClientSessionIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientSessionIdrecord component.Returns the value of theclientStorageProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalClientIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theuserSessionIdrecord component.
-
Constructor Details
-
UserSessionIdAndClientSessionId
public UserSessionIdAndClientSessionId(String userSessionId, String clientSessionId, String clientStorageProvider, String externalClientId) Creates an instance of aUserSessionIdAndClientSessionIdrecord class.- Parameters:
userSessionId- the value for theuserSessionIdrecord componentclientSessionId- the value for theclientSessionIdrecord componentclientStorageProvider- the value for theclientStorageProviderrecord componentexternalClientId- the value for theexternalClientIdrecord 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). -
userSessionId
Returns the value of theuserSessionIdrecord component.- Returns:
- the value of the
userSessionIdrecord component
-
clientSessionId
Returns the value of theclientSessionIdrecord component.- Returns:
- the value of the
clientSessionIdrecord component
-
clientStorageProvider
Returns the value of theclientStorageProviderrecord component.- Returns:
- the value of the
clientStorageProviderrecord component
-
externalClientId
Returns the value of theexternalClientIdrecord component.- Returns:
- the value of the
externalClientIdrecord component
-