Class FailedLoginCaptchaException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class FailedLoginCaptchaException
    extends javax.security.auth.login.FailedLoginException
    This Exception should be thrown when an IP failed to login several times, and the authentication service wants to enable Captcha.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FailedLoginCaptchaException​(boolean bEnableCaptcha)
      Creates a new instance of FailedLoginCaptchaException
      FailedLoginCaptchaException​(java.lang.String strMessage, boolean bEnableCaptcha)
      Creates a new instance of FailedLoginCaptchaException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isCaptchaEnabled()
      Check if the captcha should be enabled
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FailedLoginCaptchaException

        public FailedLoginCaptchaException​(boolean bEnableCaptcha)
        Creates a new instance of FailedLoginCaptchaException
        Parameters:
        bEnableCaptcha - True if the captcha should be enabled, false otherwise
      • FailedLoginCaptchaException

        public FailedLoginCaptchaException​(java.lang.String strMessage,
                                           boolean bEnableCaptcha)
        Creates a new instance of FailedLoginCaptchaException
        Parameters:
        strMessage - The detail message
        bEnableCaptcha - True if the captcha should be enabled, false otherwise
    • Method Detail

      • isCaptchaEnabled

        public boolean isCaptchaEnabled()
        Check if the captcha should be enabled
        Returns:
        True if the captcha should be enabled, false otherwise