Spring Security Framework

org.springframework.security.adapters
Class HttpRequestIntegrationFilter

java.lang.Object
  extended by org.springframework.security.adapters.HttpRequestIntegrationFilter
All Implemented Interfaces:
Filter

public class HttpRequestIntegrationFilter
extends Object
implements Filter

Populates SecurityContext with the Authentication obtained from the container's HttpServletRequest.getUserPrincipal().

Use this filter with container adapters only.

This filter never preserves the Authentication on the SecurityContext - it is replaced every request.

See HttpSessionContextIntegrationFilter for further information.

Version:
$Id$
Author:
Ben Alex

Constructor Summary
HttpRequestIntegrationFilter()
           
 
Method Summary
 void destroy()
          Does nothing.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig arg0)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestIntegrationFilter

public HttpRequestIntegrationFilter()
Method Detail

destroy

public void destroy()
Does nothing. We use IoC container lifecycle services instead.

Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

init

public void init(FilterConfig arg0)
          throws ServletException
Does nothing. We use IoC container lifecycle services instead.

Specified by:
init in interface Filter
Parameters:
arg0 - ignored
Throws:
ServletException - ignored

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.