Class SpringActiveDirectoryAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
com.wavemaker.runtime.security.ad.SpringActiveDirectoryAuthenticationException
- All Implemented Interfaces:
Serializable
public final class SpringActiveDirectoryAuthenticationException
extends org.springframework.security.core.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
can be accessed using
invalid reference
ActiveDirectoryAuthenticationExceptionThrowable.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:
-
Method Summary
Methods inherited from class org.springframework.security.core.AuthenticationException
getAuthenticationRequest, setAuthenticationRequestMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getDataCode
-