Class FailedLoginCaptchaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
javax.security.auth.login.LoginException
javax.security.auth.login.FailedLoginException
fr.paris.lutece.portal.service.security.FailedLoginCaptchaException
- All Implemented Interfaces:
Serializable
This Exception should be thrown when an IP failed to login several times, and the authentication service wants to enable Captcha.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFailedLoginCaptchaException(boolean bEnableCaptcha) Creates a new instance of FailedLoginCaptchaExceptionFailedLoginCaptchaException(String strMessage, boolean bEnableCaptcha) Creates a new instance of FailedLoginCaptchaException -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the captcha should be enabledMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailedLoginCaptchaException
public FailedLoginCaptchaException(boolean bEnableCaptcha) Creates a new instance of FailedLoginCaptchaException- Parameters:
bEnableCaptcha- True if the captcha should be enabled, false otherwise
-
FailedLoginCaptchaException
Creates a new instance of FailedLoginCaptchaException- Parameters:
strMessage- The detail messagebEnableCaptcha- True if the captcha should be enabled, false otherwise
-
-
Method Details
-
isCaptchaEnabled
public boolean isCaptchaEnabled()Check if the captcha should be enabled- Returns:
- True if the captcha should be enabled, false otherwise
-