Package com.unboundid.ldap.sdk
Class LDAPBindException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.unboundid.util.LDAPSDKException
com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPBindException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SASLBindInProgressException
@NotExtensible
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class LDAPBindException
extends LDAPException
This class defines an exception that can be thrown if the server sends a bind
response with a result code other than
ResultCode.SUCCESS, which
indicates that the bind operation did not complete successfully. This may be
used to obtain access to any server SASL credentials contained in the
non-successful bind result.- See Also:
-
Field Summary
Fields inherited from class com.unboundid.ldap.sdk.LDAPException
NO_CONTROLS, NO_REFERRALS -
Constructor Summary
ConstructorsConstructorDescriptionLDAPBindException(BindResult bindResult) Creates a new LDAP bind exception from the provided bind result. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the bind result that was returned by the server.Retrieves the server SASL credentials included in the bind result, if any.Creates a newLDAPResultobject from this exception.Methods inherited from class com.unboundid.ldap.sdk.LDAPException
getDiagnosticMessage, getExceptionMessage, getExceptionMessage, getMatchedDN, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl, toString, toStringMethods inherited from class com.unboundid.util.LDAPSDKException
toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
LDAPBindException
Creates a new LDAP bind exception from the provided bind result.- Parameters:
bindResult- The bind result to use to create this exception.
-
-
Method Details
-
toLDAPResult
Creates a newLDAPResultobject from this exception.- Overrides:
toLDAPResultin classLDAPException- Returns:
- The
LDAPResultobject created from this exception.
-
getBindResult
Retrieves the bind result that was returned by the server.- Returns:
- The bind result that was returned by the server.
-
getServerSASLCredentials
Retrieves the server SASL credentials included in the bind result, if any.- Returns:
- The server SASL credentials included in the bind result, or
nullif the bind result did not include any server SASL credentials.
-