Class KeycloakConfigurationServletListener
java.lang.Object
org.keycloak.adapters.saml.elytron.KeycloakConfigurationServletListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
public class KeycloakConfigurationServletListener
extends Object
implements jakarta.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(jakarta.servlet.ServletContext servletContext) voidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) voidcontextInitialized(jakarta.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(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
addTokenStoreUpdaters
public void addTokenStoreUpdaters(jakarta.servlet.ServletContext servletContext) -
getIdMapperUpdater
-
setIdMapperUpdater
-