Package org.ametys.core.captcha
Class CaptchaHelper.ValidableCaptcha
- java.lang.Object
-
- org.ametys.core.captcha.CaptchaHelper.ValidableCaptcha
-
- Enclosing class:
- CaptchaHelper
static class CaptchaHelper.ValidableCaptcha extends Object
Bean for a captcha and a validity date
-
-
Constructor Summary
Constructors Constructor Description ValidableCaptcha(Captcha c)
Build the captcha wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Captcha
getCaptcha()
Get the wrapper captchavoid
invalidate()
Mark the captcha as invalidboolean
isValid()
Determine if the validity date has not expired
-
-
-
Constructor Detail
-
ValidableCaptcha
public ValidableCaptcha(Captcha c)
Build the captcha wrapper- Parameters:
c
- the captcha to wrap
-
-
Method Detail
-
isValid
public boolean isValid()
Determine if the validity date has not expired- Returns:
- true if the captcha is still valid
-
getCaptcha
public Captcha getCaptcha()
Get the wrapper captcha- Returns:
- captcha
-
invalidate
public void invalidate()
Mark the captcha as invalid
-
-