Class 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 a ServletContext attribute in order to provide to OidcAuthenticationMechanism a way to obtain the configuration when processing requests.

    Author:
    Pedro Igor, Farah Juma
    • Constructor Detail

      • OidcConfigurationServletListener

        public OidcConfigurationServletListener()
    • Method Detail

      • 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
      • getConfigInputStream

        private InputStream getConfigInputStream​(jakarta.servlet.ServletContext servletContext)
      • getJsonFromServletContext

        private InputStream getJsonFromServletContext​(jakarta.servlet.ServletContext servletContext)