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
    Constructor
    Description
    Creates a new SecurityFilterChain
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSecurityFilter(org.codice.ddf.platform.filter.SecurityFilter filter)
    Adds a single SecurityFilter to the start of the local filter chain.
    void
    doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SecurityFilterChain

      public SecurityFilterChain()
      Creates a new SecurityFilterChain
  • Method Details

    • addSecurityFilter

      public void addSecurityFilter(org.codice.ddf.platform.filter.SecurityFilter filter)
      Adds a single SecurityFilter to the start of the local filter chain.
      Parameters:
      filter - The servlet filter to add.
      Throws:
      IllegalArgumentException - when the is null
      IllegalStateException - when a trying to add a
      invalid reference
      Filter
      to this when the doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) has been called at least once. This ensures that the SecurityFilterChain may 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:
      doFilter in interface org.codice.ddf.platform.filter.SecurityFilterChain
      Throws:
      IOException
      org.codice.ddf.platform.filter.AuthenticationException