public class OpenSSLSocketFactoryImpl extends SSLSocketFactory
| Constructor and Description |
|---|
OpenSSLSocketFactoryImpl() |
OpenSSLSocketFactoryImpl(SSLParametersImpl sslParameters) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress address,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(Socket s,
String hostname,
int port,
boolean autoClose) |
Socket |
createSocket(String hostname,
int port) |
Socket |
createSocket(String hostname,
int port,
InetAddress localHost,
int localPort) |
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
void |
setUseEngineSocket(boolean useEngineSocket)
Configures the socket to be created for this instance.
|
static void |
setUseEngineSocketByDefault(boolean useEngineSocket)
Configures the default socket to be created for all instances.
|
createSocket, getDefaultpublic OpenSSLSocketFactoryImpl()
public OpenSSLSocketFactoryImpl(SSLParametersImpl sslParameters)
public static void setUseEngineSocketByDefault(boolean useEngineSocket)
public void setUseEngineSocket(boolean useEngineSocket)
useEngineSocketByDefault will be used.public String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactorypublic Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String hostname, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(InetAddress address, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(Socket s, String hostname, int port, boolean autoClose) throws IOException
createSocket in class SSLSocketFactoryIOException