org.pentaho.di.trans.steps.ldapinput.store
Class CustomSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.pentaho.di.trans.steps.ldapinput.store.CustomSocketFactory
public class CustomSocketFactory
- extends SSLSocketFactory
Method Summary |
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 SocketFactory |
getDefault()
|
String[] |
getDefaultCipherSuites()
|
String[] |
getSupportedCipherSuites()
|
CustomSocketFactory
public CustomSocketFactory()
- Required for reflection.
getDefault
public static SocketFactory getDefault()
configure
public static void configure(String path,
String password)
throws KettleException
- Configures this SSLSocketFactory so that it uses the given keystore as its truststore.
- Throws:
KettleException
configure
public static void configure()
- Configures this SSLSocketFactory so that it trusts any signer.
createSocket
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
createSocket
public Socket createSocket(String host,
int port,
InetAddress client_host,
int client_port)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
createSocket
public Socket createSocket(InetAddress host,
int port)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
createSocket
public Socket createSocket(InetAddress host,
int port,
InetAddress client_host,
int client_port)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
createSocket
public Socket createSocket(Socket socket,
String host,
int port,
boolean autoclose)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SSLSocketFactory
- Throws:
IOException
UnknownHostException
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuites
in class SSLSocketFactory
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in class SSLSocketFactory