Package com.octo.captcha.service

Examples of com.octo.captcha.service.CaptchaServiceException


* @author Jose Noheda
*/
public class AJAXManageableImageCaptchaService extends DefaultManageableImageCaptchaService {

    public boolean validateResponse(String id, String response) {
        if (!store.hasCaptcha(id)) throw new CaptchaServiceException("Invalid ID, could not validate unexisting captcha");
        return store.getCaptcha(id).validateResponse(response);
    }
View Full Code Here


* @author Jose Noheda
*/
public class AJAXManageableImageCaptchaService extends DefaultManageableImageCaptchaService {

    public boolean validateResponse(String id, String response) {
        if (!store.hasCaptcha(id)) throw new CaptchaServiceException("Invalid ID, could not validate unexisting captcha");
        return store.getCaptcha(id).validateResponse(response);
    }
View Full Code Here

TOP

Related Classes of com.octo.captcha.service.CaptchaServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.