Package org.wildfly.security.http.oidc
Class OidcConfigurationServletListener
- java.lang.Object
-
- org.wildfly.security.http.oidc.OidcConfigurationServletListener
-
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
public class OidcConfigurationServletListener extends Object implements jakarta.servlet.ServletContextListener
A
ServletContextListener
that parses the OIDC configuration and sets the configuration as aServletContext
attribute in order to provide toOidcAuthenticationMechanism
a way to obtain the configuration when processing requests.- Author:
- Pedro Igor, Farah Juma
-
-
Constructor Summary
Constructors Constructor Description OidcConfigurationServletListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(jakarta.servlet.ServletContextEvent sce)
void
contextInitialized(jakarta.servlet.ServletContextEvent sce)
private InputStream
getConfigInputStream(jakarta.servlet.ServletContext servletContext)
private InputStream
getJsonFromServletContext(jakarta.servlet.ServletContext servletContext)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-
getConfigInputStream
private InputStream getConfigInputStream(jakarta.servlet.ServletContext servletContext)
-
getJsonFromServletContext
private InputStream getJsonFromServletContext(jakarta.servlet.ServletContext servletContext)
-
-