- java.lang.Object
-
- org.glassfish.soteria.servlet.SamRegistrationInstaller
-
- All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer,jakarta.servlet.ServletContextListener,EventListener
public class SamRegistrationInstaller extends Object implements jakarta.servlet.ServletContainerInitializer, jakarta.servlet.ServletContextListener
If an HttpAuthenticationMechanism implementation has been found on the classpath, this initializer installs a bridge SAM that delegates the validateRequest, secureResponse and cleanSubject methods from the SAM to the HttpAuthenticationMechanism.The bridge SAM uses
CDI.current()to obtain the HttpAuthenticationMechanism, therefore fully enabling CDI in the implementation of that interface.- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description SamRegistrationInstaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(jakarta.servlet.ServletContextEvent sce)voidonStartup(Set<Class<?>> c, jakarta.servlet.ServletContext ctx)
-
-
-
Method Detail
-
onStartup
public void onStartup(Set<Class<?>> c, jakarta.servlet.ServletContext ctx) throws jakarta.servlet.ServletException
- Specified by:
onStartupin interfacejakarta.servlet.ServletContainerInitializer- Throws:
jakarta.servlet.ServletException
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
-