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.
| Modifier and Type | Field and Description |
|---|---|
protected static org.jboss.logging.Logger |
log |
| 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.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2018 JBoss by Red Hat. All rights reserved.