Class MapUserSessionAdapter
- java.lang.Object
- 
- org.keycloak.models.map.userSession.AbstractUserSessionModel
- 
- org.keycloak.models.map.userSession.MapUserSessionAdapter
 
 
- 
- All Implemented Interfaces:
- UserSessionModel
 
 public class MapUserSessionAdapter extends AbstractUserSessionModel - Author:
- Martin Kanis
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.UserSessionModelUserSessionModel.SearchableFields, UserSessionModel.SessionPersistenceState, UserSessionModel.State
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.userSession.AbstractUserSessionModelentity, realm, session
 - 
Fields inherited from interface org.keycloak.models.UserSessionModelCORRESPONDING_SESSION_ID
 
- 
 - 
Constructor SummaryConstructors Constructor Description MapUserSessionAdapter(KeycloakSession session, RealmModel realm, MapUserSessionEntity entity)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
MapUserSessionAdapterpublic MapUserSessionAdapter(KeycloakSession session, RealmModel realm, MapUserSessionEntity entity) 
 
- 
 - 
Method Detail- 
getIdpublic String getId() 
 - 
getRealmpublic RealmModel getRealm() 
 - 
getBrokerSessionIdpublic String getBrokerSessionId() Description copied from interface:UserSessionModelIf created via a broker external login, this is an identifier that can be used to match external broker backchannel logout requests to a UserSession- Returns:
 
 - 
getBrokerUserIdpublic String getBrokerUserId() 
 - 
getUserpublic UserModel getUser() 
 - 
getLoginUsernamepublic String getLoginUsername() 
 - 
getIpAddresspublic String getIpAddress() 
 - 
getAuthMethodpublic String getAuthMethod() 
 - 
isRememberMepublic boolean isRememberMe() 
 - 
getStartedpublic int getStarted() 
 - 
getLastSessionRefreshpublic int getLastSessionRefresh() 
 - 
setLastSessionRefreshpublic void setLastSessionRefresh(int seconds) 
 - 
isOfflinepublic boolean isOffline() 
 - 
getAuthenticatedClientSessionspublic Map<String,AuthenticatedClientSessionModel> getAuthenticatedClientSessions() Description copied from interface:UserSessionModelReturns map where key is ID of the client (its UUID) and value is ID respectiveAuthenticatedClientSessionModelobject.- Returns:
 
 - 
filterAndRemoveExpiredClientSessionspublic boolean filterAndRemoveExpiredClientSessions(MapAuthenticatedClientSessionEntity clientSession) 
 - 
filterAndRemoveClientSessionWithoutClientpublic boolean filterAndRemoveClientSessionWithoutClient(MapAuthenticatedClientSessionEntity clientSession) 
 - 
matchingOfflineFlagpublic boolean matchingOfflineFlag(MapAuthenticatedClientSessionEntity clientSession) 
 - 
getAuthenticatedClientSessionByClientpublic AuthenticatedClientSessionModel getAuthenticatedClientSessionByClient(String clientUUID) Description copied from interface:UserSessionModelReturns a client session for the given client UUID.- Returns:
 
 - 
removeAuthenticatedClientSessionspublic void removeAuthenticatedClientSessions(Collection<String> removedClientUKS) Description copied from interface:UserSessionModelRemoves authenticated client sessions for all clients whose UUID is present inremovedClientUUIDSparameter.
 - 
removeNotepublic void removeNote(String name) 
 - 
getStatepublic UserSessionModel.State getState() 
 - 
setStatepublic void setState(UserSessionModel.State state) 
 - 
restartSessionpublic void restartSession(RealmModel realm, UserModel user, String loginUsername, String ipAddress, String authMethod, boolean rememberMe, String brokerSessionId, String brokerUserId) 
 
- 
 
-