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 String
AUTH_SESSIONS_LIMIT
static String
AUTHENTICATION_SESSION_EVENTS
static String
CLIENT_REMOVED_AUTHSESSION_EVENT
static int
DEFAULT_AUTH_SESSIONS_LIMIT
static String
PROVIDER_ID
static int
PROVIDER_PRIORITY
static String
REALM_REMOVED_AUTHSESSION_EVENT
-
Constructor Summary
Constructors Constructor Description InfinispanAuthenticationSessionProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
This is called when the server shuts down.AuthenticationSessionProvider
create(KeycloakSession session)
List<ProviderConfigProperty>
getConfigMetadata()
Returns the metadata for each configuration property supported by this factory.String
getId()
void
init(Config.Scope config)
Only called once when the factory is first created.int
order()
void
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initializedprotected void
registerClusterListeners(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:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory
-
postInit
public void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory
-
getConfigMetadata
public List<ProviderConfigProperty> getConfigMetadata()
Description copied from interface:ProviderFactory
Returns the metadata for each configuration property supported by this factory.- Specified by:
getConfigMetadata
in 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:
create
in interfaceProviderFactory
-
close
public void close()
Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProviderFactory
-
getId
public String getId()
- Specified by:
getId
in interfaceProviderFactory
-
order
public int order()
- Specified by:
order
in interfaceProviderFactory
-
-