Package com.netscape.cmscore.ldapconn
Class LdapAnonConnection
- java.lang.Object
-
- netscape.ldap.LDAPConnection
-
- com.netscape.cmscore.ldapconn.LdapAnonConnection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,netscape.ldap.LDAPAsynchronousConnection
,netscape.ldap.LDAPv2
,netscape.ldap.LDAPv3
- Direct Known Subclasses:
LdapAnonConnFactory.AnonConnection
public class LdapAnonConnection extends netscape.ldap.LDAPConnection
A LDAP connection that is bound to a server host, port and secure type. Makes a LDAP connection when instantiated. Cannot establish another LDAP connection after construction. LDAPConnection connect methods are overridden to prevent this.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class netscape.ldap.LDAPConnection
LDAP_PROPERTY_PROTOCOL, LDAP_PROPERTY_SDK, LDAP_PROPERTY_SECURITY, LDAP_VERSION, MAXBACKLOG, NODELAY_PARALLEL, NODELAY_SERIAL, TRACE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description LdapAnonConnection(java.lang.String host, int port, int version)
instantiates a non-secure connection to a ldap serverLdapAnonConnection(java.lang.String host, int port, int version, netscape.ldap.LDAPSocketFactory fac)
instantiates a connection to a ldap serverLdapAnonConnection(netscape.ldap.LDAPSocketFactory socketFactory, LdapConnInfo connInfo)
instantiates a connection to a ldap server
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect(int version, java.lang.String host, int port, java.lang.String dn, java.lang.String pw)
overrides superclass connect.-
Methods inherited from class netscape.ldap.LDAPConnection
abandon, abandon, abandon, add, add, add, add, add, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, clone, close, compare, compare, compare, compare, compare, connect, connect, connect, connect, connect, connect, delete, delete, delete, delete, delete, disconnect, extendedOperation, extendedOperation, extendedOperation, finalize, getAuthenticationDN, getAuthenticationMethod, getAuthenticationPassword, getCache, getConnectTimeout, getConnSetupDelay, getConstraints, getHost, getInputStream, getOption, getOutputStream, getPort, getProperty, getResponseControls, getSearchConstraints, getSocketFactory, isAuthenticated, isConnected, isNetscape, isTLS, main, modify, modify, modify, modify, modify, modify, modify, modify, modify, modify, modify, modify, modify, read, read, read, read, read, reconnect, rename, rename, rename, rename, rename, rename, rename, rename, search, search, search, search, search, search, setCache, setConnectTimeout, setConnSetupDelay, setConstraints, setInputStream, setOption, setOutputStream, setProperty, setSearchConstraints, setSocketFactory, startTLS, toString
-
-
-
-
Constructor Detail
-
LdapAnonConnection
public LdapAnonConnection(netscape.ldap.LDAPSocketFactory socketFactory, LdapConnInfo connInfo) throws netscape.ldap.LDAPException
instantiates a connection to a ldap server- Throws:
netscape.ldap.LDAPException
-
LdapAnonConnection
public LdapAnonConnection(java.lang.String host, int port, int version, netscape.ldap.LDAPSocketFactory fac) throws netscape.ldap.LDAPException
instantiates a connection to a ldap server- Throws:
netscape.ldap.LDAPException
-
LdapAnonConnection
public LdapAnonConnection(java.lang.String host, int port, int version) throws netscape.ldap.LDAPException
instantiates a non-secure connection to a ldap server- Throws:
netscape.ldap.LDAPException
-
-
Method Detail
-
connect
public void connect(int version, java.lang.String host, int port, java.lang.String dn, java.lang.String pw) throws netscape.ldap.LDAPException
overrides superclass connect. does not allow reconnect.- Specified by:
connect
in interfacenetscape.ldap.LDAPv3
- Overrides:
connect
in classnetscape.ldap.LDAPConnection
- Throws:
netscape.ldap.LDAPException
-
-