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 Details

    • log

      protected static org.jboss.logging.Logger log
    • ADAPTER_DEPLOYMENT_CONTEXT_ATTRIBUTE

      public static final String ADAPTER_DEPLOYMENT_CONTEXT_ATTRIBUTE
    • ADAPTER_DEPLOYMENT_CONTEXT_ATTRIBUTE_ELYTRON

      public static final String ADAPTER_DEPLOYMENT_CONTEXT_ATTRIBUTE_ELYTRON
    • ADAPTER_SESSION_ID_MAPPER_ATTRIBUTE_ELYTRON

      public static final String ADAPTER_SESSION_ID_MAPPER_ATTRIBUTE_ELYTRON
    • ADAPTER_SESSION_ID_MAPPER_UPDATER_ATTRIBUTE_ELYTRON

      public static final String ADAPTER_SESSION_ID_MAPPER_UPDATER_ATTRIBUTE_ELYTRON
  • Constructor Details

    • KeycloakConfigurationServletListener

      public KeycloakConfigurationServletListener()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener
    • addTokenStoreUpdaters

      public void addTokenStoreUpdaters(jakarta.servlet.ServletContext servletContext)
    • getIdMapperUpdater

      public SessionIdMapperUpdater getIdMapperUpdater()
    • setIdMapperUpdater

      protected void setIdMapperUpdater(SessionIdMapperUpdater idMapperUpdater)