|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.opends.admin.ads.util.TrustedSocketFactory
public class TrustedSocketFactory
An implementation of SSLSocketFactory.
Constructor Summary | |
---|---|
TrustedSocketFactory(javax.net.ssl.TrustManager trustManager,
javax.net.ssl.KeyManager keyManager)
Constructor of the TrustedSocketFactory. |
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.net.InetAddress address,
int port)
|
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress clientAddress,
int clientPort)
|
java.net.Socket |
createSocket(java.net.Socket s,
java.lang.String host,
int port,
boolean autoClose)
|
java.net.Socket |
createSocket(java.lang.String host,
int port)
|
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress clientHost,
int clientPort)
|
static javax.net.SocketFactory |
getDefault()
Returns the default SSL socket factory. |
java.lang.String[] |
getDefaultCipherSuites()
|
java.lang.String[] |
getSupportedCipherSuites()
|
static void |
setCurrentThreadTrustManager(javax.net.ssl.TrustManager trustManager,
javax.net.ssl.KeyManager keyManager)
Sets the provided trust and key manager for the operations in the current thread. |
static void |
setThreadKeyManager(javax.net.ssl.KeyManager keyManager,
java.lang.Thread thread)
Sets the provided key manager for the operations in the provided thread. |
static void |
setThreadTrustManager(javax.net.ssl.TrustManager trustManager,
java.lang.Thread thread)
Sets the provided trust manager for the operations in the provided thread. |
Methods inherited from class javax.net.SocketFactory |
---|
createSocket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrustedSocketFactory(javax.net.ssl.TrustManager trustManager, javax.net.ssl.KeyManager keyManager)
trustManager
- the trust manager to use.keyManager
- the key manager to use.Method Detail |
---|
public static void setCurrentThreadTrustManager(javax.net.ssl.TrustManager trustManager, javax.net.ssl.KeyManager keyManager)
trustManager
- the trust manager to use.keyManager
- the key manager to use.public static void setThreadTrustManager(javax.net.ssl.TrustManager trustManager, java.lang.Thread thread)
trustManager
- the trust manager to use.thread
- the thread where we want to use the provided trust manager.public static void setThreadKeyManager(javax.net.ssl.KeyManager keyManager, java.lang.Thread thread)
keyManager
- the key manager to use.thread
- the thread where we want to use the provided key manager.public static javax.net.SocketFactory getDefault()
public java.net.Socket createSocket(java.net.InetAddress address, int port) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress clientAddress, int clientPort) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress clientHost, int clientPort) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose) throws java.io.IOException
createSocket
in class javax.net.ssl.SSLSocketFactory
java.io.IOException
public java.lang.String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class javax.net.ssl.SSLSocketFactory
public java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class javax.net.ssl.SSLSocketFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |