public class AdditionalKeyStoresSSLSocketFactory extends SSLSocketFactory
Modifier and Type | Class and Description |
---|---|
static class |
AdditionalKeyStoresSSLSocketFactory.AdditionalKeyStoresTrustManager
Based on http://download.oracle.com/javase/1.5.0/docs/guide/security/jsse/JSSERefGuide.html#X509TrustManager
|
Modifier and Type | Field and Description |
---|---|
protected SSLContext |
sslContext |
Constructor and Description |
---|
AdditionalKeyStoresSSLSocketFactory(KeyStore keyStore) |
AdditionalKeyStoresSSLSocketFactory(X509TrustManager tm) |
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort) |
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
getDefault
protected SSLContext sslContext
public AdditionalKeyStoresSSLSocketFactory(KeyStore keyStore) throws NoSuchAlgorithmException, KeyManagementException, KeyStoreException, UnrecoverableKeyException
public AdditionalKeyStoresSSLSocketFactory(X509TrustManager tm) throws NoSuchAlgorithmException, KeyManagementException
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException
createSocket
in class SSLSocketFactory
IOException
public Socket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocketFactory
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException