/**
* EsManageableImageCaptchaService.java
* 2014-4-22
*/
package com.mtools.core.plugin.web.jcaptcha;
import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;
/**
* <p>User: Zhang
*/
public class EsManageableImageCaptchaService extends DefaultManageableImageCaptchaService {
public EsManageableImageCaptchaService(com.octo.captcha.service.captchastore.CaptchaStore captchaStore, com.octo.captcha.engine.CaptchaEngine captchaEngine, int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize, int captchaStoreLoadBeforeGarbageCollection) {
super(captchaStore, captchaEngine, minGuarantedStorageDelayInSeconds, maxCaptchaStoreSize, captchaStoreLoadBeforeGarbageCollection);
}
public boolean hasCapcha(String id, String userCaptchaResponse) {
return store.getCaptcha(id).validateResponse(userCaptchaResponse);
}
}