|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetscape.ldap.factory.JSSESocketFactory
public class JSSESocketFactory
Creates an SSL socket connection to a server, using the JSSE package
from Sun. This class implements the LDAPSocketFactory
interface.
LDAPSocketFactory
,
LDAPConnection.LDAPConnection(netscape.ldap.LDAPSocketFactory)
,
Serialized FormField Summary | |
---|---|
protected javax.net.ssl.SSLSocketFactory |
factory
|
protected java.lang.String[] |
suites
|
Constructor Summary | |
---|---|
JSSESocketFactory()
Default factory constructor |
|
JSSESocketFactory(javax.net.ssl.SSLSocketFactory factory)
Factory constructor |
|
JSSESocketFactory(java.lang.String[] suites)
Factory constructor |
|
JSSESocketFactory(java.lang.String[] suites,
javax.net.ssl.SSLSocketFactory factory)
Factory constructor |
Method Summary | |
---|---|
java.net.Socket |
makeSocket(java.net.Socket s)
Creates an SSL socket layered over an existing socket. |
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 |
---|
protected javax.net.ssl.SSLSocketFactory factory
protected java.lang.String[] suites
Constructor Detail |
---|
public JSSESocketFactory()
public JSSESocketFactory(java.lang.String[] suites)
suites
- Cipher suites to attempt to use with the server;
if null
, use any cipher suites available in the
JSSE packagepublic JSSESocketFactory(javax.net.ssl.SSLSocketFactory factory)
factory
- the SSL socketfactory to usepublic JSSESocketFactory(java.lang.String[] suites, javax.net.ssl.SSLSocketFactory factory)
suites
- Cipher suites to attempt to use with the server;
if null
, use any cipher suites available in the
JSSE packagefactory
- the SSL socketfactory to useMethod Detail |
---|
public java.net.Socket makeSocket(java.lang.String host, int port) throws LDAPException
makeSocket
in interface LDAPSocketFactory
host
- Host name or IP address of SSL serverport
- Port numbers of SSL server
LDAPException
- on error creating socketLDAPSSLSocketFactory.makeSocket(java.lang.String,int)
public java.net.Socket makeSocket(java.net.Socket s) throws LDAPException
makeSocket
in interface LDAPTLSSocketFactory
s
- An existing non-SSL socket
LDAPException
- on error creating socketLDAPConnection.startTLS()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |