|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.unboundid.ldap.sdk.LDAPRequest
com.unboundid.ldap.sdk.BindRequest
com.unboundid.ldap.sdk.SASLBindRequest
@Extensible @ThreadSafety(level=NOT_THREADSAFE) public abstract class SASLBindRequest
This class provides an API that should be used to represent an LDAPv3 SASL
bind request. A SASL bind includes a SASL mechanism name and an optional set
of credentials.
See RFC 4422 for more
information about the Simple Authentication and Security Layer.
| Field Summary | |
|---|---|
protected static byte |
CRED_TYPE_SASL
The BER type to use for the credentials element in a simple bind request protocol op. |
| Fields inherited from class com.unboundid.ldap.sdk.BindRequest |
|---|
VERSION_ELEMENT |
| Constructor Summary | |
|---|---|
protected |
SASLBindRequest(Control[] controls)
Creates a new SASL bind request with the provided controls. |
| Method Summary | |
|---|---|
java.lang.String |
getBindType()
Retrieves a human-readable string that describes the type of bind request. |
int |
getLastMessageID()
Retrieves the message ID for the last LDAP message sent using this request. |
abstract java.lang.String |
getSASLMechanismName()
Retrieves the name of the SASL mechanism used in this SASL bind request. |
void |
responseReceived(LDAPResponse response)
Indicates that the provided LDAP response has been received by from the server. |
protected BindResult |
sendBindRequest(LDAPConnection connection,
java.lang.String bindDN,
ASN1OctetString saslCredentials,
Control[] controls,
long timeoutMillis)
Sends an LDAP message to the directory server and waits for the response. |
protected BindResult |
sendMessage(LDAPConnection connection,
LDAPMessage requestMessage,
long timeoutMillis)
Sends an LDAP message to the directory server and waits for the response. |
| Methods inherited from class com.unboundid.ldap.sdk.BindRequest |
|---|
duplicate, duplicate, getOperationType, getRebindRequest, process |
| Methods inherited from class com.unboundid.ldap.sdk.LDAPRequest |
|---|
followReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setResponseTimeoutMillis, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final byte CRED_TYPE_SASL
| Constructor Detail |
|---|
protected SASLBindRequest(Control[] controls)
controls - The set of controls to include in this SASL bind request.| Method Detail |
|---|
public java.lang.String getBindType()
getBindType in class BindRequestpublic abstract java.lang.String getSASLMechanismName()
public int getLastMessageID()
getLastMessageID in class LDAPRequest
protected final BindResult sendBindRequest(LDAPConnection connection,
java.lang.String bindDN,
ASN1OctetString saslCredentials,
Control[] controls,
long timeoutMillis)
throws LDAPException
connection - The connection to the directory server.bindDN - The bind DN to use for the request. It should be
null for most types of SASL bind requests.saslCredentials - The SASL credentials to use for the bind request.
It may be null if no credentials are
required.controls - The set of controls to include in the request. It
may be null if no controls are required.timeoutMillis - The maximum length of time in milliseconds to wait
for a response, or zero if it should wait forever.
LDAPException - If a problem occurs while sending the request or
reading the response, or if a timeout occurred
while waiting for the response.
protected final BindResult sendMessage(LDAPConnection connection,
LDAPMessage requestMessage,
long timeoutMillis)
throws LDAPException
connection - The connection to the directory server.requestMessage - The LDAP message to send to the directory server.timeoutMillis - The maximum length of time in milliseconds to wait
for a response, or zero if it should wait forever.
LDAPException - If a problem occurs while sending the request or
reading the response, or if a timeout occurred
while waiting for the response.
@InternalUseOnly
public final void responseReceived(LDAPResponse response)
throws LDAPException
response - The LDAP response that has been received from the server.
It may be null if the connection has been closed
without having received any response.
LDAPException - If a problem occurs while handling the response.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||