public class TrustedSocketFactory extends SSLSocketFactory
| Constructor and Description |
|---|
TrustedSocketFactory(TrustManager trustManager,
KeyManager keyManager)
Constructor of the TrustedSocketFactory.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(InetAddress address,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress clientAddress,
int clientPort) |
Socket |
createSocket(Socket s,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress clientHost,
int clientPort) |
static SocketFactory |
getDefault()
Returns the default SSL socket factory.
|
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
static void |
setCurrentThreadTrustManager(TrustManager trustManager,
KeyManager keyManager)
Sets the provided trust and key manager for the operations in the
current thread.
|
static void |
setThreadKeyManager(KeyManager keyManager,
Thread thread)
Sets the provided key manager for the operations in the provided thread.
|
static void |
setThreadTrustManager(TrustManager trustManager,
Thread thread)
Sets the provided trust manager for the operations in the provided thread.
|
createSocketpublic TrustedSocketFactory(TrustManager trustManager, KeyManager keyManager)
trustManager - the trust manager to use.keyManager - the key manager to use.public static void setCurrentThreadTrustManager(TrustManager trustManager, KeyManager keyManager)
trustManager - the trust manager to use.keyManager - the key manager to use.public static void setThreadTrustManager(TrustManager trustManager, Thread thread)
trustManager - the trust manager to use.thread - the thread where we want to use the provided trust manager.public static void setThreadKeyManager(KeyManager keyManager, Thread thread)
keyManager - the key manager to use.thread - the thread where we want to use the provided key manager.public static SocketFactory getDefault()
public Socket createSocket(InetAddress address, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException
createSocket in class SSLSocketFactoryIOExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactoryCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.