public class CustomSocketFactory extends SSLSocketFactory
Constructor and Description |
---|
CustomSocketFactory()
Required for reflection.
|
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() |
createSocket
createSocket
public static CustomSocketFactory getDefault()
public static void configure(String path, String password) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public static void configure()
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(String host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress host, int port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(InetAddress host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
public Socket createSocket(Socket socket, String host, int port, boolean autoclose) throws IOException, UnknownHostException
createSocket
in class SSLSocketFactory
IOException
UnknownHostException
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocketFactory