Package org.codice.ddf.pax.web.jetty
Class SecurityFilterChain
java.lang.Object
org.codice.ddf.pax.web.jetty.SecurityFilterChain
- All Implemented Interfaces:
org.codice.ddf.platform.filter.SecurityFilterChain
public class SecurityFilterChain
extends Object
implements org.codice.ddf.platform.filter.SecurityFilterChain
Implementation of filter chain that allows the ability to add new
SecurityFilters to a
chain. The SecurityFilterChain may not be reused. That is, once the doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) method is called, no more SecurityFilters may be added.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSecurityFilter(org.codice.ddf.platform.filter.SecurityFilter filter) Adds a singleSecurityFilterto the start of the local filter chain.voiddoFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
-
Constructor Details
-
SecurityFilterChain
public SecurityFilterChain()Creates a new SecurityFilterChain
-
-
Method Details
-
addSecurityFilter
public void addSecurityFilter(org.codice.ddf.platform.filter.SecurityFilter filter) Adds a singleSecurityFilterto the start of the local filter chain.- Parameters:
filter- The servlet filter to add.- Throws:
IllegalArgumentException- when the is nullIllegalStateException- when a trying to add ato this when theinvalid reference
FilterdoFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)has been called at least once. This ensures that theSecurityFilterChainmay not be reused.
-
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IOException, org.codice.ddf.platform.filter.AuthenticationException - Specified by:
doFilterin interfaceorg.codice.ddf.platform.filter.SecurityFilterChain- Throws:
IOExceptionorg.codice.ddf.platform.filter.AuthenticationException
-