org.springframework.security.web.authentication.ui
Class DefaultLoginPageGeneratingFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter
All Implemented Interfaces:
Filter, BeanNameAware, DisposableBean, InitializingBean, ServletContextAware

public class DefaultLoginPageGeneratingFilter
extends GenericFilterBean

For internal use with namespace configuration in the case where a user doesn't configure a login page. The configuration code will insert this filter in the chain instead. Will only work if a redirect is used to the login page.

Since:
2.0
Version:
$Id: DefaultLoginPageGeneratingFilter.java 4075 2009-12-18 18:44:42Z ltaylor $
Author:
Luke Taylor

Field Summary
static String DEFAULT_LOGIN_PAGE_URL
           
static String ERROR_PARAMETER_NAME
           
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
DefaultLoginPageGeneratingFilter(AbstractAuthenticationProcessingFilter filter)
           
DefaultLoginPageGeneratingFilter(UsernamePasswordAuthenticationFilter authFilter, AbstractAuthenticationProcessingFilter openIDFilter)
           
 
Method Summary
 void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
           
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOGIN_PAGE_URL

public static final String DEFAULT_LOGIN_PAGE_URL
See Also:
Constant Field Values

ERROR_PARAMETER_NAME

public static final String ERROR_PARAMETER_NAME
See Also:
Constant Field Values
Constructor Detail

DefaultLoginPageGeneratingFilter

public DefaultLoginPageGeneratingFilter(AbstractAuthenticationProcessingFilter filter)

DefaultLoginPageGeneratingFilter

public DefaultLoginPageGeneratingFilter(UsernamePasswordAuthenticationFilter authFilter,
                                        AbstractAuthenticationProcessingFilter openIDFilter)
Method Detail

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse res,
                     FilterChain chain)
              throws IOException,
                     ServletException
Throws:
IOException
ServletException


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