Class JCaptcha.ValidableCaptcha

java.lang.Object
org.ametys.plugins.core.impl.captcha.jcaptcha.JCaptcha.ValidableCaptcha
Enclosing class:
JCaptcha

protected class JCaptcha.ValidableCaptcha extends Object
Bean for a captcha and a validity date
  • Constructor Details

    • ValidableCaptcha

      Build the captcha wrapper
      Parameters:
      c - the captcha to wrap
  • Method Details

    • 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