LDAPJDK 4.1

netscape.ldap.factory
Class JSSESocketFactory

java.lang.Object
  |
  +--netscape.ldap.factory.JSSESocketFactory

public class JSSESocketFactory
extends java.lang.Object
implements LDAPSocketFactory, java.io.Serializable

Creates an SSL socket connection to a server, using the JSSE package from Sun. This class implements the LDAPSocketFactory interface.

See Also:
LDAPSocketFactory, LDAPConnection.LDAPConnection(netscape.ldap.LDAPSocketFactory), Serialized Form

Constructor Summary
JSSESocketFactory(java.lang.String[] suites)
          Factory constructor
 
Method Summary
 java.net.Socket makeSocket(java.lang.String host, int port)
          Creates an SSL socket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSSESocketFactory

public JSSESocketFactory(java.lang.String[] suites)
Factory constructor
Parameters:
suites - Cipher suites to attempt to use with the server; if null, use any cipher suites available in the JSSE package
Method Detail

makeSocket

public java.net.Socket makeSocket(java.lang.String host,
                                  int port)
                           throws LDAPException
Creates an SSL socket
Specified by:
makeSocket in interface LDAPSocketFactory
Parameters:
host - Host name or IP address of SSL server
port - Port numbers of SSL server
Returns:
A socket for an encrypted session
Throws:
LDAPException - on error creating socket

LDAPJDK 4.1