Class JCaptcha.ValidableCaptcha
java.lang.Object
org.ametys.plugins.core.impl.captcha.jcaptcha.JCaptcha.ValidableCaptcha
- Enclosing class:
- JCaptcha
Bean for a captcha and a validity date
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the wrapper captchavoid
Mark the captcha as invalidboolean
isValid()
Determine if the validity date has not expired
-
Constructor Details
-
ValidableCaptcha
Build the captcha wrapper- Parameters:
c
- the captcha to wrap
-
-
Method Details
-
isValid
Determine if the validity date has not expired- Returns:
- true if the captcha is still valid
-
getCaptcha
Get the wrapper captcha- Returns:
- captcha
-
invalidate
Mark the captcha as invalid
-