org.acegisecurity.captcha
public class CaptchaValidationProcessingFilter extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, javax.servlet.Filter
CaptchaServiceProxy
. CaptchaServiceProxy
to
validate the request, and update the CaptchaSecurityContext
if the request passed the validation. CaptchaChannelProcessorTemplate
filter in the filter stack in order to update the CaptchaSecurityContext
before the humanity verification routine occurs. CaptchaSecurityContext
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
CaptchaValidationProcessingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy()
Does nothing.
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
CaptchaServiceProxy |
getCaptchaService() |
java.lang.String |
getCaptchaValidationParameter() |
void |
init(javax.servlet.FilterConfig filterConfig)
Does nothing.
|
void |
setCaptchaService(CaptchaServiceProxy captchaService) |
void |
setCaptchaValidationParameter(java.lang.String captchaValidationParameter) |
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public CaptchaServiceProxy getCaptchaService()
public java.lang.String getCaptchaValidationParameter()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
filterConfig
- ignoredjavax.servlet.ServletException
- ignoredpublic void setCaptchaService(CaptchaServiceProxy captchaService)
public void setCaptchaValidationParameter(java.lang.String captchaValidationParameter)
Copyright © 2004-2014 Interface21, Inc. All Rights Reserved.