Package netscape.ldap
Interface LDAPSocketFactory
-
- All Known Subinterfaces:
LDAPSSLSocketFactoryExt
,LDAPTLSSocketFactory
- All Known Implementing Classes:
JSSESocketFactory
,JSSSocketFactory
,LDAPSSLSocketFactory
,LDAPSSLSocketWrapFactory
public interface LDAPSocketFactory
Represents a socket connection that you can use to connect to an LDAP server. You can write a class that implements this interface if you want to use a TLS socket to connect to a secure server. (TheLDAPSSLSocketFactory class
, which is included in thenetscape.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.- Version:
- 1.0
- See Also:
LDAPConnection(netscape.ldap.LDAPSocketFactory)
,LDAPSSLSocketFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.Socket
makeSocket(java.lang.String host, int port)
Returns a socket to the specified host name and port number.
-
-
-
Method Detail
-
makeSocket
java.net.Socket makeSocket(java.lang.String host, int port) throws LDAPException
Returns a socket to the specified host name and port number.- Parameters:
host
- name of the host to which you want to connectport
- port number to which you want to connect- Throws:
LDAPException
- Failed to create the socket.- See Also:
LDAPSSLSocketFactory.makeSocket(java.lang.String,int)
-
-