netscape.ldap
public class LDAPSSLSocketWrapFactory extends java.lang.Object implements LDAPSSLSocketFactoryExt, java.io.Serializable
LDAPSocketFactory
interface.
To use this class, pass the instance of this factory object to the
LDAPConnection
constructor.
LDAPSocketFactory
,
LDAPConnection.LDAPConnection(netscape.ldap.LDAPSocketFactory)
,
Serialized FormConstructor and Description |
---|
LDAPSSLSocketWrapFactory(java.lang.String className)
The constructor with the specified package for security
|
LDAPSSLSocketWrapFactory(java.lang.String className,
java.lang.Object cipherSuites)
The constructor with the specified package for security and the
specified cipher suites.
|
Modifier and Type | Method and Description |
---|---|
void |
enableClientAuth()
(Not implemented yet)
Enables client authentication for an application running in a java VM which provides transparent certificate database management. |
java.lang.Object |
getCipherSuites()
Returns the suite of ciphers used for SSL connections made through
sockets created by this factory.
|
java.lang.String |
getSSLSocketImpl()
Returns the name of the class that implements SSL sockets for this factory.
|
boolean |
isClientAuth()
Returns
true if client authentication is to be used. |
java.net.Socket |
makeSocket(java.lang.String host,
int port)
Returns socket to the specified host name and port number.
|
public LDAPSSLSocketWrapFactory(java.lang.String className)
className
- the name of a class which has an implementation
of the SSL Socket extending Object classpublic LDAPSSLSocketWrapFactory(java.lang.String className, java.lang.Object cipherSuites)
className
- the name of a class which has an implementation
of the SSL Socket extending Object classcipherSuites
- the cipher suitespublic java.net.Socket makeSocket(java.lang.String host, int port) throws LDAPException
makeSocket
in interface LDAPSocketFactory
host
- the host to connect toport
- the port numberLDAPException
- A socket to the specified host and port
could not be created.LDAPSSLSocketFactory.makeSocket(java.lang.String,int)
public boolean isClientAuth()
true
if client authentication is to be used.isClientAuth
in interface LDAPSSLSocketFactoryExt
true
if client authentication is enabled;
false
if client authentication is disabled.LDAPSSLSocketFactory.enableClientAuth()
public void enableClientAuth() throws LDAPException
LDAPException
- Since this method is not yet implemented,
calling this method throws an exception.public java.lang.String getSSLSocketImpl()
public java.lang.Object getCipherSuites()
getCipherSuites
in interface LDAPSSLSocketFactoryExt