Class KeycloakConfigurationServletListener
java.lang.Object
org.keycloak.adapters.saml.elytron.KeycloakConfigurationServletListener
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class KeycloakConfigurationServletListener
extends Object
implements javax.servlet.ServletContextListener
A ServletContextListener that parses the keycloak adapter configuration and set the same configuration
as a ServletContext attribute in order to provide to KeycloakHttpServerAuthenticationMechanism a way
to obtain the configuration when processing requests.
This listener should be automatically registered to a deployment using the subsystem.
- Author:
- Pedro Igor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTokenStoreUpdaters(javax.servlet.ServletContext servletContext) voidcontextDestroyed(javax.servlet.ServletContextEvent sce) voidcontextInitialized(javax.servlet.ServletContextEvent sce) protected voidsetIdMapperUpdater(SessionIdMapperUpdater idMapperUpdater)
-
Field Details
-
log
protected static org.jboss.logging.Logger log -
ADAPTER_DEPLOYMENT_CONTEXT_ATTRIBUTE
-
ADAPTER_DEPLOYMENT_CONTEXT_ATTRIBUTE_ELYTRON
-
ADAPTER_SESSION_ID_MAPPER_ATTRIBUTE_ELYTRON
-
ADAPTER_SESSION_ID_MAPPER_UPDATER_ATTRIBUTE_ELYTRON
-
-
Constructor Details
-
KeycloakConfigurationServletListener
public KeycloakConfigurationServletListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
addTokenStoreUpdaters
public void addTokenStoreUpdaters(javax.servlet.ServletContext servletContext) -
getIdMapperUpdater
-
setIdMapperUpdater
-