Package com.netscape.cmscore.ldapconn
Class LdapBoundConnection
- java.lang.Object
-
- netscape.ldap.LDAPConnection
-
- com.netscape.cmscore.ldapconn.LdapBoundConnection
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,netscape.ldap.LDAPAsynchronousConnection,netscape.ldap.LDAPv2,netscape.ldap.LDAPv3
public class LdapBoundConnection extends netscape.ldap.LDAPConnectionA LDAP connection that is bound to a server host, port, secure type. and authentication. Makes a LDAP connection and authentication when instantiated. Cannot establish another LDAP connection or authentication after construction. LDAPConnection connect and authentication methods are overridden to prevent this.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger-
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 LdapBoundConnection(java.lang.String hostname, int port, int version, netscape.ldap.LDAPSocketFactory factory, java.lang.String bindDN, java.lang.String bindPassword)Instantiates a connection to a ldap server, secure or non-secure connection with Ldap basic bind dn & pw authentication.LdapBoundConnection(netscape.ldap.LDAPSocketFactory socketFactory, LdapConnInfo connInfo, LdapAuthInfo authInfo)Instantiates a connection to a ldap server, secure or non-secure connection with Ldap basic bind dn & pw authentication.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(int version, java.lang.String dn, java.lang.String pw)Overrides same method in LDAPConnection to do prevent re-authentication.voidauthenticate(java.lang.String dn, java.lang.String pw)Overrides same method in LDAPConnection to do prevent re-authentication.voidauthenticate(java.lang.String dn, java.lang.String[] mechs, java.util.Properties props, java.lang.Object getter)Overrides same method in LDAPConnection to do prevent re-authentication.voidconnect(int version, java.lang.String host, int port, java.lang.String dn, java.lang.String pw)overrides parent's connect to prevent re-connect.voidconnect(java.lang.String host, int port)overrides parent's connect to prevent re-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, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, clone, close, compare, compare, compare, compare, compare, 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
-
LdapBoundConnection
public LdapBoundConnection(netscape.ldap.LDAPSocketFactory socketFactory, LdapConnInfo connInfo, LdapAuthInfo authInfo) throws EBaseException, netscape.ldap.LDAPExceptionInstantiates a connection to a ldap server, secure or non-secure connection with Ldap basic bind dn & pw authentication.- Throws:
EBaseExceptionnetscape.ldap.LDAPException
-
LdapBoundConnection
public LdapBoundConnection(java.lang.String hostname, int port, int version, netscape.ldap.LDAPSocketFactory factory, java.lang.String bindDN, java.lang.String bindPassword) throws netscape.ldap.LDAPExceptionInstantiates a connection to a ldap server, secure or non-secure connection with Ldap basic bind dn & pw authentication.- Throws:
netscape.ldap.LDAPException
-
-
Method Detail
-
authenticate
public void authenticate(int version, java.lang.String dn, java.lang.String pw) throws netscape.ldap.LDAPExceptionOverrides same method in LDAPConnection to do prevent re-authentication.- Specified by:
authenticatein interfacenetscape.ldap.LDAPv3- Overrides:
authenticatein classnetscape.ldap.LDAPConnection- Throws:
netscape.ldap.LDAPException
-
authenticate
public void authenticate(java.lang.String dn, java.lang.String pw) throws netscape.ldap.LDAPExceptionOverrides same method in LDAPConnection to do prevent re-authentication.- Specified by:
authenticatein interfacenetscape.ldap.LDAPv2- Overrides:
authenticatein classnetscape.ldap.LDAPConnection- Throws:
netscape.ldap.LDAPException
-
authenticate
public void authenticate(java.lang.String dn, java.lang.String[] mechs, java.util.Properties props, java.lang.Object getter) throws netscape.ldap.LDAPExceptionOverrides same method in LDAPConnection to do prevent re-authentication.- Throws:
netscape.ldap.LDAPException
-
connect
public void connect(java.lang.String host, int port) throws netscape.ldap.LDAPExceptionoverrides parent's connect to prevent re-connect.- Specified by:
connectin interfacenetscape.ldap.LDAPv2- Overrides:
connectin classnetscape.ldap.LDAPConnection- Throws:
netscape.ldap.LDAPException
-
connect
public void connect(int version, java.lang.String host, int port, java.lang.String dn, java.lang.String pw) throws netscape.ldap.LDAPExceptionoverrides parent's connect to prevent re-connect.- Specified by:
connectin interfacenetscape.ldap.LDAPv3- Overrides:
connectin classnetscape.ldap.LDAPConnection- Throws:
netscape.ldap.LDAPException
-
-