Class ActiveDirectoryAuthenticationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.security.core.AuthenticationException
-
- org.springframework.security.ldap.authentication.ad.ActiveDirectoryAuthenticationException
-
- All Implemented Interfaces:
java.io.Serializable
public final class ActiveDirectoryAuthenticationException extends AuthenticationException
Thrown as a translation of an
AuthenticationException
when attempting to authenticate against Active Directory usingActiveDirectoryLdapAuthenticationProvider
. Typically this error is wrapped by anAuthenticationException
since it does not provide a user friendly message. When wrapped, the original Exception can be caught andActiveDirectoryAuthenticationException
can be accessed usingThrowable.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 forgetDataCode()
.javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 775, vece ]
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDataCode()
-