@Extensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class BindResult extends LDAPResult
LDAPResult
class, but may be overridden to
provide more detailed information for specific types of bind requests.NO_CONTROLS
Modifier | Constructor and Description |
---|---|
protected |
BindResult(BindResult bindResult)
Creates a new bind result from the provided bind result.
|
|
BindResult(int messageID,
ResultCode resultCode,
java.lang.String diagnosticMessage,
java.lang.String matchedDN,
java.lang.String[] referralURLs,
Control[] responseControls)
Creates a new bind result with the provided information.
|
|
BindResult(int messageID,
ResultCode resultCode,
java.lang.String diagnosticMessage,
java.lang.String matchedDN,
java.lang.String[] referralURLs,
Control[] responseControls,
ASN1OctetString serverSASLCredentials)
Creates a new bind result with the provided information.
|
|
BindResult(LDAPException exception)
Creates a new bind result from the provided
LDAPException . |
|
BindResult(LDAPResult ldapResult)
Creates a new bind result from the provided generic LDAP result.
|
Modifier and Type | Method and Description |
---|---|
ASN1OctetString |
getServerSASLCredentials()
Retrieves the server SASL credentials from the bind result, if available.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this LDAP result to the provided buffer.
|
getDiagnosticMessage, getMatchedDN, getMessageID, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl, toString
public BindResult(int messageID, ResultCode resultCode, java.lang.String diagnosticMessage, java.lang.String matchedDN, java.lang.String[] referralURLs, Control[] responseControls)
messageID
- The message ID for the LDAP message that is
associated with this bind result.resultCode
- The result code from the response.diagnosticMessage
- The diagnostic message from the response, if
available.matchedDN
- The matched DN from the response, if available.referralURLs
- The set of referral URLs from the response, if
available.responseControls
- The set of controls from the response, if
available.public BindResult(int messageID, ResultCode resultCode, java.lang.String diagnosticMessage, java.lang.String matchedDN, java.lang.String[] referralURLs, Control[] responseControls, ASN1OctetString serverSASLCredentials)
messageID
- The message ID for the LDAP message that is
associated with this bind result.resultCode
- The result code from the response.diagnosticMessage
- The diagnostic message from the response, if
available.matchedDN
- The matched DN from the response, if
available.referralURLs
- The set of referral URLs from the response,
if available.responseControls
- The set of controls from the response, if
available.serverSASLCredentials
- The server SASL credentials from the
response, if available.public BindResult(LDAPResult ldapResult)
ldapResult
- The LDAP result to use to create this bind result.public BindResult(LDAPException exception)
LDAPException
.exception
- The LDAPException
to use to create this bind
result.protected BindResult(BindResult bindResult)
bindResult
- The bind result to use to create this bind result.public ASN1OctetString getServerSASLCredentials()
null
if none were provided.public void toString(java.lang.StringBuilder buffer)
toString
in interface LDAPResponse
toString
in class LDAPResult
buffer
- The buffer to which to append a string representation of
this LDAP result.