org.springframework.security.ldap.authentication.ad
Class ActiveDirectoryAuthenticationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.security.core.AuthenticationException
                  extended by org.springframework.security.ldap.authentication.ad.ActiveDirectoryAuthenticationException
All Implemented Interfaces:
Serializable

public final class ActiveDirectoryAuthenticationException
extends AuthenticationException

Thrown as a translation of an AuthenticationException when attempting to authenticate against Active Directory using ActiveDirectoryLdapAuthenticationProvider. Typically this error is wrapped by an AuthenticationException since it does not provide a user friendly message. When wrapped, the original Exception can be caught and ActiveDirectoryAuthenticationException can be accessed using Throwable.getCause() for custom error handling.

The getDataCode() will return the error code associated with the data portion of the error message. For example, the following error message would return 773 for getDataCode().

 javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 775, vece ]
 

See Also:
Serialized Form

Method Summary
 String getDataCode()
           
 
Methods inherited from class org.springframework.security.core.AuthenticationException
clearExtraInformation, getAuthentication, getExtraInformation, setAuthentication
 
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
 

Method Detail

getDataCode

public String getDataCode()