LDAP Classes
Implements Java LDAP

com.novell.ldap
Class LDAPBindRequest

java.lang.Object
  extended bycom.novell.ldap.LDAPMessage
      extended bycom.novell.ldap.LDAPBindRequest
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class LDAPBindRequest
extends LDAPMessage

Represents a simple bind request.

See Also:
LDAPConnection.sendRequest(com.novell.ldap.LDAPMessage, com.novell.ldap.LDAPMessageQueue), Serialized Form

Field Summary
 
Fields inherited from class com.novell.ldap.LDAPMessage
ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, INTERMEDIATE_RESPONSE, message, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST
 
Constructor Summary
LDAPBindRequest(int version, java.lang.String dn, byte[] passwd, LDAPControl[] cont)
          Constructs a simple bind request.
 
Method Summary
 java.lang.String getAuthenticationDN()
          Retrieves the Authentication DN for a bind request.
 java.lang.String toString()
          Return an ASN1 representation of this add request.
 
Methods inherited from class com.novell.ldap.LDAPMessage
getControls, getMessageID, getTag, getType, isRequest, readDSML, readExternal, setDeserializedValues, setTag, writeDSML, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPBindRequest

public LDAPBindRequest(int version,
                       java.lang.String dn,
                       byte[] passwd,
                       LDAPControl[] cont)
                throws LDAPException
Constructs a simple bind request.

Parameters:
version - The LDAP protocol version, use LDAP_V3. LDAP_V2 is not supported.

dn - If non-null and non-empty, specifies that the connection and all operations through it should be authenticated with dn as the distinguished name.

passwd - If non-null and non-empty, specifies that the connection and all operations through it should be authenticated with dn as the distinguished name and passwd as password.
cont - Any controls that apply to the simple bind request, or null if none.
Method Detail

getAuthenticationDN

public java.lang.String getAuthenticationDN()
Retrieves the Authentication DN for a bind request.

Returns:
the Authentication DN for a bind request

toString

public java.lang.String toString()
Return an ASN1 representation of this add request. #return an ASN1 representation of this object.

Overrides:
toString in class LDAPMessage
Returns:
a String representation for this LDAPMessage

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000