Class CacheBackedCaptchaStore
java.lang.Object
com.atlassian.confluence.impl.security.login.CacheBackedCaptchaStore
- All Implemented Interfaces:
com.octo.captcha.service.captchastore.CaptchaStore
public class CacheBackedCaptchaStore
extends Object
implements com.octo.captcha.service.captchastore.CaptchaStore
An implementation of CaptchaStore that stores captchas in Confluence's cache.
- Since:
- 8.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidempty()com.octo.captcha.CaptchagetCaptcha(String id) getKeys()intgetSize()booleanhasCaptcha(String id) voidbooleanremoveCaptcha(String id) voidstoreCaptcha(String id, com.octo.captcha.Captcha captcha) voidstoreCaptcha(String id, com.octo.captcha.Captcha captcha, Locale locale)
-
Constructor Details
-
CacheBackedCaptchaStore
public CacheBackedCaptchaStore(com.atlassian.cache.CacheFactory cacheFactory)
-
-
Method Details
-
hasCaptcha
- Specified by:
hasCaptchain interfacecom.octo.captcha.service.captchastore.CaptchaStore
-
storeCaptcha
public void storeCaptcha(String id, com.octo.captcha.Captcha captcha) throws com.octo.captcha.service.CaptchaServiceException - Specified by:
storeCaptchain interfacecom.octo.captcha.service.captchastore.CaptchaStore- Throws:
com.octo.captcha.service.CaptchaServiceException
-
storeCaptcha
public void storeCaptcha(String id, com.octo.captcha.Captcha captcha, Locale locale) throws com.octo.captcha.service.CaptchaServiceException - Specified by:
storeCaptchain interfacecom.octo.captcha.service.captchastore.CaptchaStore- Throws:
com.octo.captcha.service.CaptchaServiceException
-
getCaptcha
public com.octo.captcha.Captcha getCaptcha(String id) throws com.octo.captcha.service.CaptchaServiceException - Specified by:
getCaptchain interfacecom.octo.captcha.service.captchastore.CaptchaStore- Throws:
com.octo.captcha.service.CaptchaServiceException
-
getLocale
- Specified by:
getLocalein interfacecom.octo.captcha.service.captchastore.CaptchaStore- Throws:
com.octo.captcha.service.CaptchaServiceException
-
removeCaptcha
- Specified by:
removeCaptchain interfacecom.octo.captcha.service.captchastore.CaptchaStore
-
getSize
public int getSize()- Specified by:
getSizein interfacecom.octo.captcha.service.captchastore.CaptchaStore
-
getKeys
- Specified by:
getKeysin interfacecom.octo.captcha.service.captchastore.CaptchaStore
-
empty
public void empty()- Specified by:
emptyin interfacecom.octo.captcha.service.captchastore.CaptchaStore
-
initAndStart
public void initAndStart()- Specified by:
initAndStartin interfacecom.octo.captcha.service.captchastore.CaptchaStore
-
cleanAndShutdown
public void cleanAndShutdown()- Specified by:
cleanAndShutdownin interfacecom.octo.captcha.service.captchastore.CaptchaStore
-