Class UserSessionEntity

java.lang.Object
org.keycloak.models.sessions.infinispan.entities.SessionEntity
org.keycloak.models.sessions.infinispan.entities.UserSessionEntity
All Implemented Interfaces:
Serializable

@SerializeWith(ExternalizerImpl.class) public class UserSessionEntity extends SessionEntity
Author:
Stian Thorgersen
See Also:
  • Field Details

    • logger

      public static final org.jboss.logging.Logger logger
    • LAST_SESSION_REFRESH_REMOTE

      public static final String LAST_SESSION_REFRESH_REMOTE
      See Also:
  • Constructor Details

    • UserSessionEntity

      public UserSessionEntity(String id)
  • Method Details

    • getId

      public String getId()
    • getUser

      public String getUser()
    • setUser

      public void setUser(String user)
    • getLoginUsername

      public String getLoginUsername()
    • setLoginUsername

      public void setLoginUsername(String loginUsername)
    • getIpAddress

      public String getIpAddress()
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • getAuthMethod

      public String getAuthMethod()
    • setAuthMethod

      public void setAuthMethod(String authMethod)
    • isRememberMe

      public boolean isRememberMe()
    • setRememberMe

      public void setRememberMe(boolean rememberMe)
    • getStarted

      public int getStarted()
    • setStarted

      public void setStarted(int started)
    • getLastSessionRefresh

      public int getLastSessionRefresh()
    • setLastSessionRefresh

      public void setLastSessionRefresh(int lastSessionRefresh)
    • getNotes

      public Map<String,String> getNotes()
    • setNotes

      public void setNotes(Map<String,String> notes)
    • getAuthenticatedClientSessions

      public AuthenticatedClientSessionStore getAuthenticatedClientSessions()
    • setAuthenticatedClientSessions

      public void setAuthenticatedClientSessions(AuthenticatedClientSessionStore authenticatedClientSessions)
    • getState

      public UserSessionModel.State getState()
    • setState

      public void setState(UserSessionModel.State state)
    • getBrokerSessionId

      public String getBrokerSessionId()
    • setBrokerSessionId

      public void setBrokerSessionId(String brokerSessionId)
    • getBrokerUserId

      public String getBrokerUserId()
    • setBrokerUserId

      public void setBrokerUserId(String brokerUserId)
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class SessionEntity
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class SessionEntity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • mergeRemoteEntityWithLocalEntity

      public SessionEntityWrapper mergeRemoteEntityWithLocalEntity(SessionEntityWrapper localEntityWrapper)
      Overrides:
      mergeRemoteEntityWithLocalEntity in class SessionEntity