public class BindRequest extends AbstractRequest
Modifier and Type | Field and Description |
---|---|
private Credential |
bindCredential
Credential for the bind DN.
|
private String |
bindDn
DN to bind as before performing operations.
|
private SaslConfig |
saslConfig
Configuration for SASL authentication.
|
Constructor and Description |
---|
BindRequest()
Default constructor.
|
BindRequest(SaslConfig config)
Creates a new bind request.
|
BindRequest(String dn,
Credential credential)
Creates a new bind request.
|
BindRequest(String dn,
Credential credential,
SaslConfig config)
Creates a new bind request.
|
Modifier and Type | Method and Description |
---|---|
Credential |
getCredential()
Returns the credential used with the bind DN.
|
String |
getDn()
Returns the bind DN.
|
SaslConfig |
getSaslConfig()
Returns the sasl config.
|
void |
setCredential(Credential credential)
Sets the credential of the bind DN.
|
void |
setDn(String dn)
Sets the bind DN to authenticate as before performing operations.
|
void |
setSaslConfig(SaslConfig config)
Sets the sasl config.
|
String |
toString() |
getControls, getIntermediateResponseHandlers, getReferralHandler, setControls, setIntermediateResponseHandlers, setReferralHandler
private String bindDn
private Credential bindCredential
private SaslConfig saslConfig
public BindRequest()
public BindRequest(String dn, Credential credential)
dn
- to bind ascredential
- to bind withpublic BindRequest(String dn, Credential credential, SaslConfig config)
dn
- to bind ascredential
- to bind withconfig
- sasl configurationpublic BindRequest(SaslConfig config)
config
- sasl configurationpublic String getDn()
public void setDn(String dn)
dn
- to bind aspublic Credential getCredential()
public void setCredential(Credential credential)
credential
- to use with bind DNpublic SaslConfig getSaslConfig()
public void setSaslConfig(SaslConfig config)
config
- sasl configCopyright © 2003-2019 Virginia Tech. All Rights Reserved.