org.jboss.seam.captcha
Class CaptchaResponseValidator

java.lang.Object
  extended by org.jboss.seam.captcha.CaptchaResponseValidator
All Implemented Interfaces:
org.hibernate.validator.Validator

public class CaptchaResponseValidator
extends Object
implements org.hibernate.validator.Validator

Validates that the input entered by the user matches the captcha image.

Author:
Gavin King

Constructor Summary
CaptchaResponseValidator()
           
 
Method Summary
 void initialize(Annotation captchaResponse)
           
 boolean isValid(Object response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptchaResponseValidator

public CaptchaResponseValidator()
Method Detail

initialize

public void initialize(Annotation captchaResponse)
Specified by:
initialize in interface org.hibernate.validator.Validator

isValid

public boolean isValid(Object response)
Specified by:
isValid in interface org.hibernate.validator.Validator