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.
Constructor and Description |
---|
KeycloakConfigurationServletListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
public KeycloakConfigurationServletListener()
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2021 JBoss by Red Hat. All rights reserved.