@NotExtensible @Mutable @ThreadSafety(level=NOT_THREADSAFE) public class LDAPConstraints extends java.lang.Object implements java.io.Serializable
LDAPConnectionOptions
class should be used
instead.Constructor and Description |
---|
LDAPConstraints()
Creates a new default set of constraints.
|
LDAPConstraints(int msLimit,
boolean doReferrals,
LDAPBind bindProc,
int hopLimit)
Creates a set of LDAP constraints with the provided information.
|
LDAPConstraints(int msLimit,
boolean doReferrals,
LDAPRebind rebindProc,
int hopLimit)
Creates a set of LDAP constraints with the provided information.
|
Modifier and Type | Method and Description |
---|---|
LDAPConstraints |
duplicate()
Retrieves a duplicate of this LDAP constraints object.
|
LDAPBind |
getBindProc()
Retrieves the object that should be used to authenticate connections when
following referrals.
|
LDAPControl[] |
getClientControls()
Retrieves the controls that should be applied by the clients.
|
int |
getHopLimit()
Retrieves the maximum number of hops to take when attempting to follow a
referral.
|
LDAPRebind |
getRebindProc()
Retrieves the object that should be used to obtain authentication
information for use when following referrals.
|
boolean |
getReferrals()
Indicates whether the client should automatically attempt to follow
referrals.
|
LDAPControl[] |
getServerControls()
Retrieves the controls that should be applied by the server.
|
int |
getTimeLimit()
Retrieves the maximum length of time in milliseconds to wait for a response
from the server.
|
void |
setBindProc(LDAPBind bindProc)
Specifies the object that should be used to authenticate connections when
following referrals.
|
void |
setClientControls(LDAPControl control)
Specifies the controls that should be applied by the client.
|
void |
setClientControls(LDAPControl[] controls)
Specifies the controls that should be applied by the client.
|
void |
setHopLimit(int hopLimit)
Retrieves the maximum number of hops to take when attempting to follow a
referral.
|
void |
setRebindProc(LDAPRebind rebindProc)
Specifies the object that should be used to obtain authentication
information for use when following referrals.
|
void |
setReferrals(boolean doReferrals)
Specifies whether the client should automatically attempt to follow
referrals.
|
void |
setServerControls(LDAPControl control)
Specifies the controls that should be applied by the server.
|
void |
setServerControls(LDAPControl[] controls)
Specifies the controls that should be applied by the server.
|
void |
setTimeLimit(int timeLimit)
Specifies the maximum length of time in milliseconds to wait for a response
from the server.
|
java.lang.String |
toString()
Retrieves a string representation of this LDAP constraints object.
|
public LDAPConstraints()
public LDAPConstraints(int msLimit, boolean doReferrals, @Nullable LDAPBind bindProc, int hopLimit)
msLimit
- The maximum length of time in milliseconds to wait for
a response from the server.doReferrals
- Indicates whether to attempt to follow referrals.bindProc
- The object to use to authenticate a connection when
following referrals.hopLimit
- The maximum number of hops to take when following a
referral.public LDAPConstraints(int msLimit, boolean doReferrals, @Nullable LDAPRebind rebindProc, int hopLimit)
msLimit
- The maximum length of time in milliseconds to wait for
a response from the server.doReferrals
- Indicates whether to attempt to follow referrals.rebindProc
- The object to use to provide the information needed to
authenticate a connection created for following a
referral.hopLimit
- The maximum number of hops to take when following a
referral.public int getTimeLimit()
public void setTimeLimit(int timeLimit)
timeLimit
- The maximum length of time in milliseconds to wait for a
response from the server.public boolean getReferrals()
true
if the client should attempt to follow referrals, or
false
if not.public void setReferrals(boolean doReferrals)
doReferrals
- Indicates whether the client should automatically
attempt to follow referrals.@Nullable public LDAPBind getBindProc()
null
if none has been defined.public void setBindProc(@Nullable LDAPBind bindProc)
bindProc
- The object that should be used to authenticate
connections when following referrals.@Nullable public LDAPRebind getRebindProc()
null
if
none has been defined.public void setRebindProc(@Nullable LDAPRebind rebindProc)
rebindProc
- The object that should be used to obtain authentication
information for use when following referrals.public int getHopLimit()
public void setHopLimit(int hopLimit)
hopLimit
- The maximum number of hops to take when attempting to
follow a referral.@NotNull public LDAPControl[] getClientControls()
public void setClientControls(@NotNull LDAPControl control)
control
- The control that should be applied by client.public void setClientControls(@Nullable LDAPControl[] controls)
controls
- The controls that should be applied by client.@NotNull public LDAPControl[] getServerControls()
public void setServerControls(@NotNull LDAPControl control)
control
- The control that should be applied by server.public void setServerControls(@Nullable LDAPControl[] controls)
controls
- The controls that should be applied by server.@NotNull public LDAPConstraints duplicate()