Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.captcha
Class AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor  view AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor download AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor.java

java.lang.Object
  extended byorg.acegisecurity.captcha.CaptchaChannelProcessorTemplate
      extended byorg.acegisecurity.captcha.AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor
All Implemented Interfaces:
org.acegisecurity.securechannel.ChannelProcessor, org.springframework.beans.factory.InitializingBean

public class AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor
extends CaptchaChannelProcessorTemplate

return false if thresold is lower than average time millis between any CaptchaChannelProcessorTemplate mapped urls requests and is human;
Default keyword : REQUIRES_CAPTCHA_AFTER_THRESOLD_IN_MILLIS
Note : before first humanity check

Version:
$Id: AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor.java,v 1.2 2005/11/17 00:55:49 benalex Exp $

Field Summary
static java.lang.String DEFAULT_KEYWORD
          Keyword for this channelProcessor
 
Fields inherited from class org.acegisecurity.captcha.CaptchaChannelProcessorTemplate
logger
 
Constructor Summary
AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor()
          Constructor
 
Method Summary
 void afterPropertiesSet()
          Verify if thresold is > 0
(package private)  boolean isContextValidConcerningHumanity(CaptchaSecurityContext context)
          Verify wheter the context is valid concerning humanity
 
Methods inherited from class org.acegisecurity.captcha.CaptchaChannelProcessorTemplate
decide, getEntryPoint, getKeyword, getThresold, setEntryPoint, setKeyword, setThresold, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEYWORD

public static final java.lang.String DEFAULT_KEYWORD
Keyword for this channelProcessor

See Also:
Constant Field Values
Constructor Detail

AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor

public AlwaysTestBelowAverageTimeInMillisBetweenRequestsChannelProcessor()
Constructor

Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Verify if thresold is > 0

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class CaptchaChannelProcessorTemplate

isContextValidConcerningHumanity

boolean isContextValidConcerningHumanity(CaptchaSecurityContext context)
Verify wheter the context is valid concerning humanity

Specified by:
isContextValidConcerningHumanity in class CaptchaChannelProcessorTemplate