@NotExtensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPBindException extends LDAPException
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.NO_CONTROLS, NO_REFERRALS
Constructor and Description |
---|
LDAPBindException(BindResult bindResult)
Creates a new LDAP bind exception from the provided bind result.
|
Modifier and Type | Method and Description |
---|---|
BindResult |
getBindResult()
Retrieves the bind result that was returned by the server.
|
ASN1OctetString |
getServerSASLCredentials()
Retrieves the server SASL credentials included in the bind result, if any.
|
LDAPResult |
toLDAPResult()
Creates a new
LDAPResult object from this exception. |
getDiagnosticMessage, getExceptionMessage, getMatchedDN, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl, toString
toString
public LDAPBindException(BindResult bindResult)
bindResult
- The bind result to use to create this exception.public LDAPResult toLDAPResult()
LDAPResult
object from this exception.toLDAPResult
in class LDAPException
LDAPResult
object created from this exception.public BindResult getBindResult()
public ASN1OctetString getServerSASLCredentials()
null
if the bind result did not include any server SASL
credentials.