Class MapRootAuthenticationSessionAdapter
- java.lang.Object
-
- org.keycloak.models.map.authSession.AbstractRootAuthenticationSessionModel<MapRootAuthenticationSessionEntity>
-
- org.keycloak.models.map.authSession.MapRootAuthenticationSessionAdapter
-
- All Implemented Interfaces:
RootAuthenticationSessionModel
public class MapRootAuthenticationSessionAdapter extends AbstractRootAuthenticationSessionModel<MapRootAuthenticationSessionEntity>
- Author:
- Martin Kanis
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.sessions.RootAuthenticationSessionModel
RootAuthenticationSessionModel.SearchableFields
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.map.authSession.AbstractRootAuthenticationSessionModel
entity, realm, session
-
-
Constructor Summary
Constructors Constructor Description MapRootAuthenticationSessionAdapter(KeycloakSession session, RealmModel realm, MapRootAuthenticationSessionEntity entity, int authSessionsLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationSessionModelcreateAuthenticationSession(ClientModel client)AuthenticationSessionModelgetAuthenticationSession(ClientModel client, String tabId)Map<String,AuthenticationSessionModel>getAuthenticationSessions()StringgetId()RealmModelgetRealm()intgetTimestamp()voidremoveAuthenticationSessionByTabId(String tabId)voidrestartSession(RealmModel realm)voidsetTimestamp(int timestamp)-
Methods inherited from class org.keycloak.models.map.authSession.AbstractRootAuthenticationSessionModel
equals, hashCode
-
-
-
-
Constructor Detail
-
MapRootAuthenticationSessionAdapter
public MapRootAuthenticationSessionAdapter(KeycloakSession session, RealmModel realm, MapRootAuthenticationSessionEntity entity, int authSessionsLimit)
-
-
Method Detail
-
getId
public String getId()
-
getRealm
public RealmModel getRealm()
-
getTimestamp
public int getTimestamp()
-
setTimestamp
public void setTimestamp(int timestamp)
-
getAuthenticationSessions
public Map<String,AuthenticationSessionModel> getAuthenticationSessions()
-
getAuthenticationSession
public AuthenticationSessionModel getAuthenticationSession(ClientModel client, String tabId)
-
createAuthenticationSession
public AuthenticationSessionModel createAuthenticationSession(ClientModel client)
-
removeAuthenticationSessionByTabId
public void removeAuthenticationSessionByTabId(String tabId)
-
restartSession
public void restartSession(RealmModel realm)
-
-