org.owasp.esapi.errors
Class AuthenticationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.owasp.esapi.errors.EnterpriseSecurityException
              extended byorg.owasp.esapi.errors.AuthenticationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthenticationAccountsException, AuthenticationCredentialsException, AuthenticationHostException, AuthenticationLoginException

public class AuthenticationException
extends EnterpriseSecurityException

An AuthenticationException should be thrown when anything goes wrong during login or logout. They are also appropriate for any problems related to identity management.

Author:
Jeff Williams (jeff.williams@aspectsecurity.com)
See Also:
Serialized Form

Constructor Summary
AuthenticationException(java.lang.String userMessage, java.lang.String logMessage)
          Creates a new instance of EnterpriseSecurityException.
AuthenticationException(java.lang.String userMessage, java.lang.String logMessage, java.lang.Throwable cause)
          Instantiates a new authentication exception.
 
Methods inherited from class org.owasp.esapi.errors.EnterpriseSecurityException
getLogMessage, getUserMessage
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationException

public AuthenticationException(java.lang.String userMessage,
                               java.lang.String logMessage)
Creates a new instance of EnterpriseSecurityException.


AuthenticationException

public AuthenticationException(java.lang.String userMessage,
                               java.lang.String logMessage,
                               java.lang.Throwable cause)
Instantiates a new authentication exception.

Parameters:
cause - the cause