Class PolicyEnforcerServletContextListener
- java.lang.Object
-
- org.keycloak.adapters.authorization.integration.elytron.PolicyEnforcerServletContextListener
-
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
@WebListener public class PolicyEnforcerServletContextListener extends Object implements jakarta.servlet.ServletContextListener
AServletContextListenerto programmatically configure theServletContextin order to enable the policy enforcer. By default, the policy enforcer configuration is loaded from a file atWEB-INF/policy-enforcer.json. Applications can also dynamically resolve the configuration by implementing theConfigurationResolverSPI. For that, make sure to create a {@link META-INF/services/org.keycloak.adapters.authorization.spi.ConfigurationResolver} to register the implementation.- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description PolicyEnforcerServletContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextInitialized(jakarta.servlet.ServletContextEvent sce)
-