Package net.shibboleth.idp.authn.impl
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 Summary
Fields Modifier and Type Field Description private static StringAPACHE_NULLApache null indicator.static StringCHAIN_HEADERS_PARAMInit parameter controlling what headers to check for the chain certificates.private Collection<String>chainHeadersName of headers containing chain certificates.static StringLEAF_HEADER_PARAMInit parameter controlling what headers to check for the leaf certificate.private StringleafHeaderName of header containing end-entity certificate.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description X509ProxyFilter()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig config)
-
-
-
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
-
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.
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.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:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
-