Package netscape.ldap
Class LDAPSSLSocketWrapFactory
java.lang.Object
netscape.ldap.LDAPSSLSocketWrapFactory
- All Implemented Interfaces:
Serializable
,LDAPSocketFactory
,LDAPSSLSocketFactoryExt
public class LDAPSSLSocketWrapFactory
extends Object
implements LDAPSSLSocketFactoryExt, Serializable
Creates an SSL socket connection to an LDAP Server. This class is provided
by the package in which the SSL socket does not extend Socket object.
The class internally provides a wrapper to convert the SSL socket extending
the Object class to the one extending the Socket class.
This factory class implements the
LDAPSocketFactory
interface.
To use this class, pass the instance of this factory object to the
LDAPConnection
constructor.
- Version:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLDAPSSLSocketWrapFactory
(String className) The constructor with the specified package for securityLDAPSSLSocketWrapFactory
(String className, Object cipherSuites) The constructor with the specified package for security and the specified cipher suites. -
Method Summary
Modifier and TypeMethodDescriptionvoid
(Not implemented yet)
Enables client authentication for an application running in a java VM which provides transparent certificate database management.Returns the suite of ciphers used for SSL connections made through sockets created by this factory.Returns the name of the class that implements SSL sockets for this factory.boolean
Returnstrue
if client authentication is to be used.makeSocket
(String host, int port) Returns socket to the specified host name and port number.
-
Constructor Details
-
LDAPSSLSocketWrapFactory
The constructor with the specified package for security- Parameters:
className
- the name of a class which has an implementation of the SSL Socket extending Object class
-
LDAPSSLSocketWrapFactory
The constructor with the specified package for security and the specified cipher suites.- Parameters:
className
- the name of a class which has an implementation of the SSL Socket extending Object classcipherSuites
- the cipher suites
-
-
Method Details
-
makeSocket
Returns socket to the specified host name and port number.- Specified by:
makeSocket
in interfaceLDAPSocketFactory
- Parameters:
host
- the host to connect toport
- the port number- Returns:
- the socket to the host name and port number as passed in.
- Throws:
LDAPException
- A socket to the specified host and port could not be created.- See Also:
-
isClientAuth
public boolean isClientAuth()Returnstrue
if client authentication is to be used.- Specified by:
isClientAuth
in interfaceLDAPSSLSocketFactoryExt
- Returns:
true
if client authentication is enabled;false
if client authentication is disabled.- See Also:
-
enableClientAuth
(Not implemented yet)
Enables client authentication for an application running in a java VM which provides transparent certificate database management. Calling this method has no effect after makeSocket() has been called.- Throws:
LDAPException
- Since this method is not yet implemented, calling this method throws an exception.
-
getSSLSocketImpl
Returns the name of the class that implements SSL sockets for this factory.- Returns:
- the name of the class that implements SSL sockets for this factory.
-
getCipherSuites
Returns the suite of ciphers used for SSL connections made through sockets created by this factory.- Specified by:
getCipherSuites
in interfaceLDAPSSLSocketFactoryExt
- Returns:
- the suite of ciphers used.
-