public class CustomSocketFactory extends SSLSocketFactory
| Modifier | Constructor and Description |
|---|---|
|
CustomSocketFactory()
Required for reflection.
|
protected |
CustomSocketFactory(SSLSocketFactory factory)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
configure()
Configures this SSLSocketFactory so that it trusts any signer.
|
static void |
configure(String path,
String password)
Configures this SSLSocketFactory so that it uses the given keystore as its truststore.
|
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress host,
int port,
InetAddress client_host,
int client_port) |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoclose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress client_host,
int client_port) |
static CustomSocketFactory |
getDefault() |
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
createSocketcreateSocketpublic CustomSocketFactory()
protected CustomSocketFactory(SSLSocketFactory factory)
public static CustomSocketFactory getDefault()
public static void configure(String path, String password) throws KettleException
KettleExceptionpublic static void configure()
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(String host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(InetAddress host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(Socket socket, String host, int port, boolean autoclose) throws IOException, UnknownHostException
createSocket in class SSLSocketFactoryIOExceptionUnknownHostExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactoryCopyright © 2018 Hitachi Vantara. All rights reserved.