LDAP Classes
Implements Java LDAP

com.novell.ldap
Class LDAPSecureSocketFactory

java.lang.Object
  extended bycom.novell.ldap.LDAPSecureSocketFactory
All Implemented Interfaces:
org.ietf.ldap.LDAPSocketFactory, LDAPSocketFactory

Deprecated. As of January 2002 SDK, use LDAPJSSESecureSocketFactory If a JDK 1.7 is required, use of this class is a valid alternative to JSSE (which runs in JDK 1.2 or greater). Represents the socket factory that creates secure socket connections to LDAP servers.

Currently, this factory creates SSL capable socket connections to LDAP servers. It returns sockets of type com.novell.service.security.net.SecureSocket.

At the present time, only server authentication is supported, meaning the client authenticates the certificate sent from the server. Following authentication of the server's certificate, a secure SSL connection is established. The client application then performs connection, authentication, or other LDAP operations with the server as required.

public class LDAPSecureSocketFactory
extends java.lang.Object
implements LDAPSocketFactory, org.ietf.ldap.LDAPSocketFactory

See Also:
LDAPConnection.setSocketFactory(com.novell.ldap.LDAPSocketFactory)

Constructor Summary
LDAPSecureSocketFactory()
          Deprecated. Constructs an LDAPSecureSocketFactory object.
 
Method Summary
 java.net.Socket createSocket(java.lang.String host, int port)
          Deprecated. Returns the socket connected to the LDAP server with the specified host name and port number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSecureSocketFactory

public LDAPSecureSocketFactory()
Deprecated. 
Constructs an LDAPSecureSocketFactory object.

Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Deprecated. 
Returns the socket connected to the LDAP server with the specified host name and port number.

The secure connection is established to the server when this call returns.

Specified by:
createSocket in interface LDAPSocketFactory
Parameters:
host - The host name or a dotted string representing the IP address of the LDAP server to which you want to establish a connection.

port - The port number on the specified LDAP server that you want to use for this connection. The default LDAP port for SSL connections is 636.
Returns:
A socket to the LDAP server using the specifiec host name and port number.
Throws:
java.io.IOException - A socket to the specified host and port could not be created.
java.net.UnknownHostException - The specified host could not be found.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000