fr.paris.lutece.portal.service.security
Class FailedLoginCaptchaException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by javax.security.auth.login.LoginException
                  extended by javax.security.auth.login.FailedLoginException
                      extended by fr.paris.lutece.portal.service.security.FailedLoginCaptchaException
All Implemented Interfaces:
Serializable

public final class FailedLoginCaptchaException
extends 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
FailedLoginCaptchaException(boolean bEnableCaptcha)
          Creates a new instance of FailedLoginCaptchaException
FailedLoginCaptchaException(String strMessage, boolean bEnableCaptcha)
          Creates a new instance of FailedLoginCaptchaException
 
Method Summary
 boolean isCaptchaEnabled()
          Check if the captcha should be enabled
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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(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


Copyright © 2014 Mairie de Paris. All Rights Reserved.