Class X509ProxyFilter

java.lang.Object
net.shibboleth.idp.authn.impl.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 Details

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

      @Nonnull @NotEmpty private static final String APACHE_NULL
      Apache null indicator.
      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.
    • chainHeaders

      @Nonnull @NonnullElements private Collection<String> chainHeaders
      Name of headers containing chain certificates.
  • Constructor Details

    • X509ProxyFilter

      public X509ProxyFilter()
      Constructor.
  • Method Details

    • 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