public class DisabledUserSessionPersisterProvider extends Object implements UserSessionPersisterProviderFactory, UserSessionPersisterProvider
Constructor and Description |
---|
DisabledUserSessionPersisterProvider() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is called when the server shuts down.
|
UserSessionPersisterProvider |
create(KeycloakSession session) |
void |
createClientSession(AuthenticatedClientSessionModel clientSession,
boolean offline) |
void |
createUserSession(UserSessionModel userSession,
boolean offline) |
String |
getId() |
int |
getUserSessionsCount(boolean offline) |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
List<UserSessionModel> |
loadUserSessions(int firstResult,
int maxResults,
boolean offline,
int lastCreatedOn,
String lastUserSessionId) |
void |
onClientRemoved(RealmModel realm,
ClientModel client) |
void |
onRealmRemoved(RealmModel realm) |
void |
onUserRemoved(RealmModel realm,
UserModel user) |
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
void |
removeClientSession(String userSessionId,
String clientUUID,
boolean offline) |
void |
removeExpired(RealmModel realm) |
void |
removeUserSession(String userSessionId,
boolean offline) |
void |
updateLastSessionRefreshes(RealmModel realm,
int lastSessionRefresh,
Collection<String> userSessionIds,
boolean offline) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String ID
public DisabledUserSessionPersisterProvider()
public UserSessionPersisterProvider create(KeycloakSession session)
create
in interface ProviderFactory<UserSessionPersisterProvider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<UserSessionPersisterProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface UserSessionPersisterProviderFactory
postInit
in interface ProviderFactory<UserSessionPersisterProvider>
public void close()
ProviderFactory
close
in interface Provider
close
in interface ProviderFactory<UserSessionPersisterProvider>
public String getId()
getId
in interface ProviderFactory<UserSessionPersisterProvider>
public void createUserSession(UserSessionModel userSession, boolean offline)
createUserSession
in interface UserSessionPersisterProvider
public void createClientSession(AuthenticatedClientSessionModel clientSession, boolean offline)
createClientSession
in interface UserSessionPersisterProvider
public void removeUserSession(String userSessionId, boolean offline)
removeUserSession
in interface UserSessionPersisterProvider
public void removeClientSession(String userSessionId, String clientUUID, boolean offline)
removeClientSession
in interface UserSessionPersisterProvider
public void onRealmRemoved(RealmModel realm)
onRealmRemoved
in interface UserSessionPersisterProvider
public void onClientRemoved(RealmModel realm, ClientModel client)
onClientRemoved
in interface UserSessionPersisterProvider
public void onUserRemoved(RealmModel realm, UserModel user)
onUserRemoved
in interface UserSessionPersisterProvider
public void updateLastSessionRefreshes(RealmModel realm, int lastSessionRefresh, Collection<String> userSessionIds, boolean offline)
updateLastSessionRefreshes
in interface UserSessionPersisterProvider
public void removeExpired(RealmModel realm)
removeExpired
in interface UserSessionPersisterProvider
public List<UserSessionModel> loadUserSessions(int firstResult, int maxResults, boolean offline, int lastCreatedOn, String lastUserSessionId)
loadUserSessions
in interface UserSessionPersisterProvider
public int getUserSessionsCount(boolean offline)
getUserSessionsCount
in interface UserSessionPersisterProvider
Copyright © 2020 JBoss by Red Hat. All rights reserved.