public abstract class SessionCaptchaManager extends CaptchaManager
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionCaptchaManager.CaptchaValue |
| Modifier and Type | Field and Description |
|---|---|
protected AppConfig |
appConfig |
static String |
CONFIG_CACHE_SIZE |
static int |
DEFAULT_CACHE_SIZE |
static String |
SESSION_ATTRIBUTE_CAPTCHA_CACHE |
PARAM_CAPTCHA_ID, PARAM_CAPTCHA_WORDS, VERIFY_FAILED, VERIFY_VALID, VERIFY_VALID_RESUBMITTED| Constructor and Description |
|---|
SessionCaptchaManager() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doGetCaptchaWords(javax.servlet.http.HttpServletRequest request,
String captchaId) |
protected String |
doNextCaptchaWords(javax.servlet.http.HttpServletRequest request,
String captchaId) |
protected void |
doRemoveCaptcha(javax.servlet.http.HttpServletRequest request,
String captchaId) |
protected int |
doVerifyCaptcha(javax.servlet.http.HttpServletRequest request,
String captchaId,
String captchaWords) |
protected int |
getCacheSize() |
protected void |
saveCaptcha(javax.servlet.http.HttpServletRequest request,
String captchaId,
String captchaWords) |
getCaptchaIdGenerator, getCaptchaIdParam, getCaptchaWords, getCaptchaWordsParam, getWordsGenerator, initCaptcha, nextCaptchaWords, removeCaptcha, verifyCaptchapublic static final String SESSION_ATTRIBUTE_CAPTCHA_CACHE
public static final int DEFAULT_CACHE_SIZE
public static final String CONFIG_CACHE_SIZE
@Inject protected AppConfig appConfig
protected int getCacheSize()
protected void saveCaptcha(javax.servlet.http.HttpServletRequest request,
String captchaId,
String captchaWords)
saveCaptcha in class CaptchaManagerprotected String doGetCaptchaWords(javax.servlet.http.HttpServletRequest request, String captchaId)
doGetCaptchaWords in class CaptchaManagerprotected String doNextCaptchaWords(javax.servlet.http.HttpServletRequest request, String captchaId)
doNextCaptchaWords in class CaptchaManagerprotected int doVerifyCaptcha(javax.servlet.http.HttpServletRequest request,
String captchaId,
String captchaWords)
doVerifyCaptcha in class CaptchaManagerprotected void doRemoveCaptcha(javax.servlet.http.HttpServletRequest request,
String captchaId)
doRemoveCaptcha in class CaptchaManagerCopyright © 2018. All rights reserved.