Package org.keycloak.models.utils
Class UserSessionModelDelegate
java.lang.Object
org.keycloak.models.utils.UserSessionModelDelegate
- All Implemented Interfaces:
UserSessionModel
- Author:
- Alexander Schwartz
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.UserSessionModel
UserSessionModel.SessionPersistenceState, UserSessionModel.State -
Field Summary
Fields inherited from interface org.keycloak.models.UserSessionModel
CORRESPONDING_SESSION_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuthenticatedClientSessionByClient(String clientUUID) getId()intgetNotes()getRealm()intgetState()getUser()booleanbooleanvoidremoveAuthenticatedClientSessions(Collection<String> removedClientUUIDS) voidremoveNote(String name) voidrestartSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) voidsetLastSessionRefresh(int seconds) voidvoidsetState(UserSessionModel.State state)
-
Constructor Details
-
UserSessionModelDelegate
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceUserSessionModel
-
getRealm
- Specified by:
getRealmin interfaceUserSessionModel
-
getBrokerSessionId
- Specified by:
getBrokerSessionIdin interfaceUserSessionModel
-
getBrokerUserId
- Specified by:
getBrokerUserIdin interfaceUserSessionModel
-
getUser
- Specified by:
getUserin interfaceUserSessionModel
-
getLoginUsername
- Specified by:
getLoginUsernamein interfaceUserSessionModel
-
getIpAddress
- Specified by:
getIpAddressin interfaceUserSessionModel
-
getAuthMethod
- Specified by:
getAuthMethodin interfaceUserSessionModel
-
isRememberMe
public boolean isRememberMe()- Specified by:
isRememberMein interfaceUserSessionModel
-
getStarted
public int getStarted()- Specified by:
getStartedin interfaceUserSessionModel
-
getLastSessionRefresh
public int getLastSessionRefresh()- Specified by:
getLastSessionRefreshin interfaceUserSessionModel
-
setLastSessionRefresh
public void setLastSessionRefresh(int seconds) - Specified by:
setLastSessionRefreshin interfaceUserSessionModel
-
isOffline
public boolean isOffline()- Specified by:
isOfflinein interfaceUserSessionModel
-
getAuthenticatedClientSessions
- Specified by:
getAuthenticatedClientSessionsin interfaceUserSessionModel
-
getAuthenticatedClientSessionByClient
- Specified by:
getAuthenticatedClientSessionByClientin interfaceUserSessionModel
-
removeAuthenticatedClientSessions
- Specified by:
removeAuthenticatedClientSessionsin interfaceUserSessionModel
-
getNote
- Specified by:
getNotein interfaceUserSessionModel
-
setNote
- Specified by:
setNotein interfaceUserSessionModel
-
removeNote
- Specified by:
removeNotein interfaceUserSessionModel
-
getNotes
- Specified by:
getNotesin interfaceUserSessionModel
-
getState
- Specified by:
getStatein interfaceUserSessionModel
-
setState
- Specified by:
setStatein interfaceUserSessionModel
-
restartSession
public void restartSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) - Specified by:
restartSessionin interfaceUserSessionModel
-
getPersistenceState
- Specified by:
getPersistenceStatein interfaceUserSessionModel
-