Class MapUserSessionProviderFactory<UK,CK>
- java.lang.Object
-
- org.keycloak.models.map.userSession.MapUserSessionProviderFactory<UK,CK>
-
- All Implemented Interfaces:
AmphibianProviderFactory<UserSessionProvider>,ComponentFactory<UserSessionProvider,UserSessionProvider>,UserSessionProviderFactory,ConfiguredProvider,EnvironmentDependentProviderFactory,ProviderEventListener,ProviderFactory<UserSessionProvider>
public class MapUserSessionProviderFactory<UK,CK> extends Object implements AmphibianProviderFactory<UserSessionProvider>, UserSessionProviderFactory, ProviderEventListener, EnvironmentDependentProviderFactory
- Author:
- Martin Kanis
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_STORAGE_CLIENT_SESSIONSstatic StringCONFIG_STORAGE_USER_SESSIONSstatic StringPROVIDER_ID
-
Constructor Summary
Constructors Constructor Description MapUserSessionProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()MapUserSessionProvidercreate(KeycloakSession session)StringgetHelpText()StringgetId()voidinit(Config.Scope config)booleanisSupported()voidloadPersistentSessions(KeycloakSessionFactory sessionFactory, int maxErrors, int sessionsPerSegment)voidonEvent(ProviderEvent event)voidpostInit(KeycloakSessionFactory factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.component.AmphibianProviderFactory
create, getConfigProperties, onUpdate, preRemove
-
Methods inherited from interface org.keycloak.component.ComponentFactory
getCommonProviderConfigProperties, getTypeMetadata, onCreate, validateConfiguration
-
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
-
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactory
isSupported
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Field Detail
-
CONFIG_STORAGE_USER_SESSIONS
public static final String CONFIG_STORAGE_USER_SESSIONS
- See Also:
- Constant Field Values
-
CONFIG_STORAGE_CLIENT_SESSIONS
public static final String CONFIG_STORAGE_CLIENT_SESSIONS
- See Also:
- Constant Field Values
-
PROVIDER_ID
public static final String PROVIDER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceProviderFactory<UK>
-
init
public void init(Config.Scope config)
- Specified by:
initin interfaceProviderFactory<UK>
-
postInit
public void postInit(KeycloakSessionFactory factory)
- Specified by:
postInitin interfaceProviderFactory<UK>
-
close
public void close()
- Specified by:
closein interfaceAmphibianProviderFactory<UK>- Specified by:
closein interfaceProviderFactory<UK>
-
loadPersistentSessions
public void loadPersistentSessions(KeycloakSessionFactory sessionFactory, int maxErrors, int sessionsPerSegment)
- Specified by:
loadPersistentSessionsin interfaceUserSessionProviderFactory
-
create
public MapUserSessionProvider create(KeycloakSession session)
- Specified by:
createin interfaceAmphibianProviderFactory<UK>- Specified by:
createin interfaceComponentFactory<UK,CK>- Specified by:
createin interfaceProviderFactory<UK>
-
getHelpText
public String getHelpText()
- Specified by:
getHelpTextin interfaceConfiguredProvider
-
onEvent
public void onEvent(ProviderEvent event)
- Specified by:
onEventin interfaceProviderEventListener
-
isSupported
public boolean isSupported()
- Specified by:
isSupportedin interfaceEnvironmentDependentProviderFactory
-
-