org.jboss.seam.captcha
Class CaptchaResponseValidator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaptchaResponseValidator
public CaptchaResponseValidator()
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>
Copyright © 2013 Seam Framework. All Rights Reserved.