@Extensible @ThreadSafety(level=NOT_THREADSAFE) public abstract class BindRequest extends LDAPRequest
BindRequest
object to attempt to bind concurrently over multiple
connections.
SASLBindRequest
subclass is actually intended to be extended by
third-party code.Modifier and Type | Field and Description |
---|---|
protected static ASN1Integer |
VERSION_ELEMENT
The pre-encoded ASN.1 element used to represent the protocol version.
|
Modifier | Constructor and Description |
---|---|
protected |
BindRequest(Control[] controls)
Creates a new bind request with the provided set of controls.
|
Modifier and Type | Method and Description |
---|---|
abstract BindRequest |
duplicate()
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
abstract BindRequest |
duplicate(Control[] controls)
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
abstract java.lang.String |
getBindType()
Retrieves a human-readable string that describes the type of bind request.
|
OperationType |
getOperationType()
Retrieves the type of operation that is represented by this request.
|
BindRequest |
getRebindRequest(java.lang.String host,
int port)
Retrieves a bind request that may be used to re-bind using the same
credentials authentication type and credentials as previously used to
perform the initial bind.
|
protected abstract BindResult |
process(LDAPConnection connection,
int depth)
Sends this bind request to the target server over the provided connection
and returns the corresponding response.
|
followReferrals, getControl, getControlList, getControls, getIntermediateResponseListener, getLastMessageID, getReferralConnector, getReferralConnectorInternal, getReferralDepth, getResponseTimeoutMillis, hasControl, hasControl, setFollowReferrals, setIntermediateResponseListener, setReferralConnector, setReferralDepth, setResponseTimeoutMillis, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toCode
@NotNull protected static final ASN1Integer VERSION_ELEMENT
protected BindRequest(@Nullable Control[] controls)
controls
- The set of controls to include in this bind request.@NotNull protected abstract BindResult process(@NotNull LDAPConnection connection, int depth) throws LDAPException
process
in class LDAPRequest
connection
- The connection to use to send this bind request to the
server and read the associated response.depth
- The current referral depth for this request. It should
always be one for the initial request, and should only
be incremented when following referrals.LDAPException
- If a problem occurs while sending the request or
reading the response.@NotNull public final OperationType getOperationType()
getOperationType
in class LDAPRequest
@NotNull public abstract java.lang.String getBindType()
@NotNull public abstract BindRequest duplicate()
@NotNull public abstract BindRequest duplicate(@Nullable Control[] controls)
controls
- The set of controls to include in the duplicate request.@Nullable public BindRequest getRebindRequest(@NotNull java.lang.String host, int port)
host
- The address of the directory server to which the connection
is established.port
- The port of the directory server to which the connection is
established.null
to indicate that automatic
re-binding is not supported for this type of bind request.