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() |
createSocket
createSocket
public CustomSocketFactory()
protected CustomSocketFactory(SSLSocketFactory factory)
public static CustomSocketFactory getDefault()
public static void configure(String path, String password) throws KettleException
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
Copyright © 2018 Hitachi Vantara. All rights reserved.