Class InfinispanAuthenticationSessionProviderFactory
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.InfinispanAuthenticationSessionProviderFactory
-
- All Implemented Interfaces:
ProviderFactory,AuthenticationSessionProviderFactory
public class InfinispanAuthenticationSessionProviderFactory extends Object implements AuthenticationSessionProviderFactory
- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTH_SESSIONS_LIMITstatic StringAUTHENTICATION_SESSION_EVENTSstatic StringCLIENT_REMOVED_AUTHSESSION_EVENTstatic intDEFAULT_AUTH_SESSIONS_LIMITstatic StringPROVIDER_IDstatic intPROVIDER_PRIORITYstatic StringREALM_REMOVED_AUTHSESSION_EVENT
-
Constructor Summary
Constructors Constructor Description InfinispanAuthenticationSessionProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.AuthenticationSessionProvidercreate(KeycloakSession session)List<ProviderConfigProperty>getConfigMetadata()Returns the metadata for each configuration property supported by this factory.StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.intorder()voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializedprotected voidregisterClusterListeners(KeycloakSession session)
-
-
-
Field Detail
-
PROVIDER_PRIORITY
public static final int PROVIDER_PRIORITY
- See Also:
- Constant Field Values
-
PROVIDER_ID
public static final String PROVIDER_ID
- See Also:
- Constant Field Values
-
AUTH_SESSIONS_LIMIT
public static final String AUTH_SESSIONS_LIMIT
- See Also:
- Constant Field Values
-
DEFAULT_AUTH_SESSIONS_LIMIT
public static final int DEFAULT_AUTH_SESSIONS_LIMIT
- See Also:
- Constant Field Values
-
AUTHENTICATION_SESSION_EVENTS
public static final String AUTHENTICATION_SESSION_EVENTS
- See Also:
- Constant Field Values
-
REALM_REMOVED_AUTHSESSION_EVENT
public static final String REALM_REMOVED_AUTHSESSION_EVENT
- See Also:
- Constant Field Values
-
CLIENT_REMOVED_AUTHSESSION_EVENT
public static final String CLIENT_REMOVED_AUTHSESSION_EVENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Config.Scope config)
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceProviderFactory
-
postInit
public void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory
-
getConfigMetadata
public List<ProviderConfigProperty> getConfigMetadata()
Description copied from interface:ProviderFactoryReturns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadatain interfaceProviderFactory- Returns:
- a list with the metadata for each configuration property supported by this factory
-
registerClusterListeners
protected void registerClusterListeners(KeycloakSession session)
-
create
public AuthenticationSessionProvider create(KeycloakSession session)
- Specified by:
createin interfaceProviderFactory
-
close
public void close()
Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory
-
getId
public String getId()
- Specified by:
getIdin interfaceProviderFactory
-
order
public int order()
- Specified by:
orderin interfaceProviderFactory
-
-