Class RegisterFilterServletContextInitializer

  • All Implemented Interfaces:
    javax.servlet.ServletContainerInitializer

    public class RegisterFilterServletContextInitializer
    extends Object
    implements javax.servlet.ServletContainerInitializer
    A ServletContainerInitializer implementation that registers dynamic response header filter for enabling configurable headers. The target bean name is TARGET_BEAN_NAME. The filter registration can be disabled by setting the system property SYSTEM_PROPERTY_ACTIVATION to
    disabled
    . The filter mappings can be configured via space-separated list on the system property SYSTEM_PROPERTY_MAPPINGS. By default the value is
    /profile/oidc/* /profile/oauth2/
    .
    • Field Detail

      • SYSTEM_PROPERTY_ACTIVATION

        public static final String SYSTEM_PROPERTY_ACTIVATION
        System property name for the activation flag of this class.
      • SYSTEM_PROPERTY_MAPPINGS

        public static final String SYSTEM_PROPERTY_MAPPINGS
        System property name for configuring the filter mappings.
      • FILTER_NAME_DYNAMIC_OIDC_RESPONSE_HEADER

        public static final String FILTER_NAME_DYNAMIC_OIDC_RESPONSE_HEADER
        The filter name for the dynamic response header filter for the OP's flows.
        See Also:
        Constant Field Values
      • TARGET_BEAN_NAME

        public static final String TARGET_BEAN_NAME
        The target bean name for the dynamic response header filter.
        See Also:
        Constant Field Values
      • DEFAULT_MAPPINGS

        public static final String DEFAULT_MAPPINGS
        The value for the filter mappings, if no custom configuration is set.
        See Also:
        Constant Field Values
      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
    • Constructor Detail

      • RegisterFilterServletContextInitializer

        public RegisterFilterServletContextInitializer()
    • Method Detail

      • onStartup

        public void onStartup​(Set<Class<?>> c,
                              javax.servlet.ServletContext ctx)
                       throws javax.servlet.ServletException
        Specified by:
        onStartup in interface javax.servlet.ServletContainerInitializer
        Throws:
        javax.servlet.ServletException