public interface LDAPSocketFactory
LDAPSSLSocketFactory class
, which is included
in the netscape.ldap
package, implements this
interface for SSL connections.)
When you construct a new LDAPConnection
object, you can specify that the connection use this socket.
To do this, pass the constructor an object of the class that
implements this interface.
LDAPConnection(netscape.ldap.LDAPSocketFactory)
,
LDAPSSLSocketFactory
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
makeSocket(java.lang.String host,
int port)
Returns a socket to the specified host name and port number.
|
java.net.Socket makeSocket(java.lang.String host, int port) throws LDAPException
host
- name of the host to which you want to connectport
- port number to which you want to connectLDAPException
- Failed to create the socket.LDAPSSLSocketFactory.makeSocket(java.lang.String,int)