Class UserSessionModelDelegate

java.lang.Object
org.keycloak.models.utils.UserSessionModelDelegate
All Implemented Interfaces:
org.keycloak.models.UserSessionModel

public class UserSessionModelDelegate extends Object implements org.keycloak.models.UserSessionModel
Author:
Alexander Schwartz
  • Constructor Details

    • UserSessionModelDelegate

      public UserSessionModelDelegate(org.keycloak.models.UserSessionModel delegate)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.keycloak.models.UserSessionModel
    • getRealm

      public org.keycloak.models.RealmModel getRealm()
      Specified by:
      getRealm in interface org.keycloak.models.UserSessionModel
    • getBrokerSessionId

      public String getBrokerSessionId()
      Specified by:
      getBrokerSessionId in interface org.keycloak.models.UserSessionModel
    • getBrokerUserId

      public String getBrokerUserId()
      Specified by:
      getBrokerUserId in interface org.keycloak.models.UserSessionModel
    • getUser

      public org.keycloak.models.UserModel getUser()
      Specified by:
      getUser in interface org.keycloak.models.UserSessionModel
    • getLoginUsername

      public String getLoginUsername()
      Specified by:
      getLoginUsername in interface org.keycloak.models.UserSessionModel
    • getIpAddress

      public String getIpAddress()
      Specified by:
      getIpAddress in interface org.keycloak.models.UserSessionModel
    • getAuthMethod

      public String getAuthMethod()
      Specified by:
      getAuthMethod in interface org.keycloak.models.UserSessionModel
    • isRememberMe

      public boolean isRememberMe()
      Specified by:
      isRememberMe in interface org.keycloak.models.UserSessionModel
    • getStarted

      public int getStarted()
      Specified by:
      getStarted in interface org.keycloak.models.UserSessionModel
    • getLastSessionRefresh

      public int getLastSessionRefresh()
      Specified by:
      getLastSessionRefresh in interface org.keycloak.models.UserSessionModel
    • setLastSessionRefresh

      public void setLastSessionRefresh(int seconds)
      Specified by:
      setLastSessionRefresh in interface org.keycloak.models.UserSessionModel
    • isOffline

      public boolean isOffline()
      Specified by:
      isOffline in interface org.keycloak.models.UserSessionModel
    • getAuthenticatedClientSessions

      public Map<String,org.keycloak.models.AuthenticatedClientSessionModel> getAuthenticatedClientSessions()
      Specified by:
      getAuthenticatedClientSessions in interface org.keycloak.models.UserSessionModel
    • getAuthenticatedClientSessionByClient

      public org.keycloak.models.AuthenticatedClientSessionModel getAuthenticatedClientSessionByClient(String clientUUID)
      Specified by:
      getAuthenticatedClientSessionByClient in interface org.keycloak.models.UserSessionModel
    • removeAuthenticatedClientSessions

      public void removeAuthenticatedClientSessions(Collection<String> removedClientUUIDS)
      Specified by:
      removeAuthenticatedClientSessions in interface org.keycloak.models.UserSessionModel
    • getNote

      public String getNote(String name)
      Specified by:
      getNote in interface org.keycloak.models.UserSessionModel
    • setNote

      public void setNote(String name, String value)
      Specified by:
      setNote in interface org.keycloak.models.UserSessionModel
    • removeNote

      public void removeNote(String name)
      Specified by:
      removeNote in interface org.keycloak.models.UserSessionModel
    • getNotes

      public Map<String,String> getNotes()
      Specified by:
      getNotes in interface org.keycloak.models.UserSessionModel
    • getState

      public org.keycloak.models.UserSessionModel.State getState()
      Specified by:
      getState in interface org.keycloak.models.UserSessionModel
    • setState

      public void setState(org.keycloak.models.UserSessionModel.State state)
      Specified by:
      setState in interface org.keycloak.models.UserSessionModel
    • restartSession

      public void restartSession(org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId)
      Specified by:
      restartSession in interface org.keycloak.models.UserSessionModel
    • getPersistenceState

      public org.keycloak.models.UserSessionModel.SessionPersistenceState getPersistenceState()
      Specified by:
      getPersistenceState in interface org.keycloak.models.UserSessionModel