org.codehaus.plexus.redback.common.ldap.connection
Class LdapConnection

java.lang.Object
  extended by org.codehaus.plexus.redback.common.ldap.connection.LdapConnection

public class LdapConnection
extends java.lang.Object

The configuration for a connection will not change.

Version:
$Id: LdapConnection.java,v 1.3 2006/02/06 15:15:54 trygvis Exp $
Author:
trygvis

Constructor Summary
LdapConnection(LdapConnectionConfiguration config, javax.naming.ldap.Rdn subRdn)
           
LdapConnection(LdapConnectionConfiguration config, java.lang.String bindDn, java.lang.String password)
          This ldap connection will attempt to establish a connection using the configuration, replacing the principal and the password
 
Method Summary
 void close()
           
 java.util.List<javax.naming.ldap.Rdn> getBaseDnRdns()
           
 LdapConnectionConfiguration getConfiguration()
           
 javax.naming.directory.DirContext getDirContext()
           
 java.util.Hashtable<java.lang.Object,java.lang.Object> getEnvironment()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapConnection

public LdapConnection(LdapConnectionConfiguration config,
                      javax.naming.ldap.Rdn subRdn)
               throws LdapException
Throws:
LdapException

LdapConnection

public LdapConnection(LdapConnectionConfiguration config,
                      java.lang.String bindDn,
                      java.lang.String password)
               throws LdapException
This ldap connection will attempt to establish a connection using the configuration, replacing the principal and the password

Parameters:
config -
bindDn -
password -
Throws:
LdapException
Method Detail

getEnvironment

public java.util.Hashtable<java.lang.Object,java.lang.Object> getEnvironment()
                                                                      throws LdapException
Throws:
LdapException

close

public void close()

getConfiguration

public LdapConnectionConfiguration getConfiguration()

getBaseDnRdns

public java.util.List<javax.naming.ldap.Rdn> getBaseDnRdns()

getDirContext

public javax.naming.directory.DirContext getDirContext()


Copyright © 2006-2008 Codehaus. All Rights Reserved.