Seam Core JSF2 2.3.1.Final

org.jboss.seam.captcha
Class CaptchaResponseValidator

java.lang.Object
  extended by org.jboss.seam.captcha.CaptchaResponseValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<CaptchaResponse,String>

public class CaptchaResponseValidator
extends Object
implements javax.validation.ConstraintValidator<CaptchaResponse,String>

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

Author:
Gavin King, Marek Novotny

Constructor Summary
CaptchaResponseValidator()
           
 
Method Summary
 void initialize(CaptchaResponse constraintAnnotation)
           
 boolean isValid(String value, javax.validation.ConstraintValidatorContext context)
           
 
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(CaptchaResponse constraintAnnotation)
Specified by:
initialize in interface javax.validation.ConstraintValidator<CaptchaResponse,String>

isValid

public boolean isValid(String value,
                       javax.validation.ConstraintValidatorContext context)
Specified by:
isValid in interface javax.validation.ConstraintValidator<CaptchaResponse,String>

Seam Core JSF2 2.3.1.Final

Copyright © 2013 Seam Framework. All Rights Reserved.