org.acegisecurity.captcha
Class CaptchaValidationProcessingFilter
java.lang.Object
org.acegisecurity.captcha.CaptchaValidationProcessingFilter
- All Implemented Interfaces:
- javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
public class CaptchaValidationProcessingFilter
- extends Object
- implements org.springframework.beans.factory.InitializingBean, javax.servlet.Filter
Filter for web integration of the CaptchaServiceProxy
.
It basically intercept calls containing the specific validation parameter, use the CaptchaServiceProxy
to
validate the request, and update the CaptchaSecurityContext
if the request passed the validation.
This Filter should be placed after the ContextIntegration filter and before the CaptchaChannelProcessorTemplate
filter in the filter stack in order to update the CaptchaSecurityContext
before the humanity verification routine occurs.
This filter should only be used in conjunction with the CaptchaSecurityContext
- Version:
- $Id: CaptchaValidationProcessingFilter.java 1784 2007-02-24 21:00:24Z luke_t $
- Author:
- marc antoine Garrigue
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
CaptchaValidationProcessingFilter
public CaptchaValidationProcessingFilter()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
destroy
public void destroy()
- Does nothing. We use IoC container lifecycle services instead.
- Specified by:
destroy
in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
getCaptchaService
public CaptchaServiceProxy getCaptchaService()
getCaptchaValidationParameter
public String getCaptchaValidationParameter()
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Does nothing. We use IoC container lifecycle services instead.
- Specified by:
init
in interface javax.servlet.Filter
- Parameters:
filterConfig
- ignored
- Throws:
javax.servlet.ServletException
- ignored
setCaptchaService
public void setCaptchaService(CaptchaServiceProxy captchaService)
setCaptchaValidationParameter
public void setCaptchaValidationParameter(String captchaValidationParameter)
Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.