Class X509ProxyFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class X509ProxyFilter
    extends Object
    implements javax.servlet.Filter
    Servlet filter to translate Apache mod_ssl certificate variables into Java servlet attributes.
    • Field Detail

      • LEAF_HEADER_PARAM

        @Nonnull
        @NotEmpty
        public static final String LEAF_HEADER_PARAM
        Init parameter controlling what headers to check for the leaf certificate.
        See Also:
        Constant Field Values
      • CHAIN_HEADERS_PARAM

        @Nonnull
        @NotEmpty
        public static final String CHAIN_HEADERS_PARAM
        Init parameter controlling what headers to check for the chain certificates.
        See Also:
        Constant Field Values
      • log

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

        @Nullable
        @NotEmpty
        private String leafHeader
        Name of header containing end-entity certificate.
    • Constructor Detail

      • X509ProxyFilter

        public X509ProxyFilter()
        Constructor.
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter