org.ldaptive
Class BindRequest

java.lang.Object
  extended by org.ldaptive.AbstractRequest
      extended by org.ldaptive.BindRequest
All Implemented Interfaces:
Message<RequestControl>, Request

public class BindRequest
extends AbstractRequest

Contains the data required to perform an ldap bind operation.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
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.
 
Method Summary
 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()
          
 
Methods inherited from class org.ldaptive.AbstractRequest
getControls, getFollowReferrals, getIntermediateResponseHandlers, setControls, setFollowReferrals, setIntermediateResponseHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BindRequest

public BindRequest()
Default constructor.


BindRequest

public BindRequest(String dn,
                   Credential credential)
Creates a new bind request.

Parameters:
dn - to bind as
credential - to bind with

BindRequest

public BindRequest(String dn,
                   Credential credential,
                   SaslConfig config)
Creates a new bind request.

Parameters:
dn - to bind as
credential - to bind with
config - sasl configuration

BindRequest

public BindRequest(SaslConfig config)
Creates a new bind request.

Parameters:
config - sasl configuration
Method Detail

getDn

public String getDn()
Returns the bind DN.

Returns:
DN to bind as

setDn

public void setDn(String dn)
Sets the bind DN to authenticate as before performing operations.

Parameters:
dn - to bind as

getCredential

public Credential getCredential()
Returns the credential used with the bind DN.

Returns:
bind DN credential

setCredential

public void setCredential(Credential credential)
Sets the credential of the bind DN.

Parameters:
credential - to use with bind DN

getSaslConfig

public SaslConfig getSaslConfig()
Returns the sasl config.

Returns:
sasl config

setSaslConfig

public void setSaslConfig(SaslConfig config)
Sets the sasl config.

Parameters:
config - sasl config

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.