doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
Provides filtering for every registered http context. Checks for an existing session (via the
SAML assertion included as a cookie). If it doesn't exist, it then looks up the current context
and determines the proper handlers to include in the chain. Each handler is given the
opportunity to locate their specific tokens if they exist or to go off and obtain them. Once a
token has been received that we know how to convert to a SAML assertion, we attach them to the
request and continue down the chain.
- Specified by:
doFilter
in interface javax.servlet.Filter
- Parameters:
servletRequest
- incoming http request
servletResponse
- response stream for returning the response
filterChain
- chain of filters to be invoked following this filter
- Throws:
IOException
javax.servlet.ServletException