|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.BindConnectionInitializer
public class BindConnectionInitializer
Initializes a connection by performing a bind operation. Useful if you need all connections to bind as the same principal.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
BindConnectionInitializer()
Default constructor. |
|
BindConnectionInitializer(String dn,
Credential credential)
Creates a new bind connection initializer. |
|
| Method Summary | |
|---|---|
RequestControl[] |
getBindControls()
Returns the bind controls. |
Credential |
getBindCredential()
Returns the credential used with the bind DN. |
String |
getBindDn()
Returns the bind DN. |
SaslConfig |
getBindSaslConfig()
Returns the bind sasl config. |
Response<Void> |
initialize(Connection c)
Initialize the supplied connection. |
boolean |
isEmpty()
Returns whether this connection initializer contains any configuration data. |
void |
setBindControls(RequestControl... c)
Sets the bind controls. |
void |
setBindCredential(Credential credential)
Sets the credential of the bind DN. |
void |
setBindDn(String dn)
Sets the bind DN to authenticate as before performing operations. |
void |
setBindSaslConfig(SaslConfig config)
Sets the bind sasl config. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public BindConnectionInitializer()
public BindConnectionInitializer(String dn,
Credential credential)
dn - bind dncredential - bind credential| Method Detail |
|---|
public String getBindDn()
public void setBindDn(String dn)
dn - to bind aspublic Credential getBindCredential()
public void setBindCredential(Credential credential)
credential - to use with bind DNpublic SaslConfig getBindSaslConfig()
public void setBindSaslConfig(SaslConfig config)
config - sasl configpublic RequestControl[] getBindControls()
public void setBindControls(RequestControl... c)
c - controls to set
public Response<Void> initialize(Connection c)
throws LdapException
initialize in interface ConnectionInitializerc - connection to initialize
LdapException - if initialization failspublic boolean isEmpty()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||