netscape.ldap.factory
Class JSSESocketFactory

java.lang.Object
  extended bynetscape.ldap.factory.JSSESocketFactory
All Implemented Interfaces:
LDAPSocketFactory, java.io.Serializable

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.

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

Field Summary
(package private) static long serialVersionUID
           
 
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
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
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
See Also:
LDAPSSLSocketFactory.makeSocket(java.lang.String,int)