com.octo.captcha.text.math
Class MathCaptcha

java.lang.Object
  extended by com.octo.captcha.text.TextCaptcha
      extended by com.octo.captcha.text.math.MathCaptcha
All Implemented Interfaces:
Captcha, java.io.Serializable

public class MathCaptcha
extends TextCaptcha

Simple math captcha

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.octo.captcha.text.TextCaptcha
challenge, question
 
Method Summary
 java.lang.Boolean validateResponse(java.lang.Object response)
          Validation routine from the CAPTCHA interface. this methods verify if the response is not null and a String and then compares the given response to the internal string.
 
Methods inherited from class com.octo.captcha.text.TextCaptcha
disposeChallenge, getChallenge, getQuestion, getTextChallenge, hasGetChalengeBeenCalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validateResponse

public final java.lang.Boolean validateResponse(java.lang.Object response)
Validation routine from the CAPTCHA interface. this methods verify if the response is not null and a String and then compares the given response to the internal string.

Parameters:
response - to the question concerning the chalenge
Returns:
true if the given response equals the internal response, false otherwise.


Copyright 2003-2009 JCaptcha. All Rights Reserved.