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
-
-
Constructor Summary
Constructors Modifier Constructor Description CustomSocketFactory()
Required for reflection.protected
CustomSocketFactory(SSLSocketFactory factory)
For internal use only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(String host, int port)
Socket
createSocket(String host, int port, InetAddress client_host, int client_port)
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)
static CustomSocketFactory
getDefault()
String[]
getDefaultCipherSuites()
String[]
getSupportedCipherSuites()
-
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket
-
Methods inherited from class javax.net.SocketFactory
createSocket
-
-
-
-
Constructor Detail
-
CustomSocketFactory
public CustomSocketFactory()
Required for reflection.
-
CustomSocketFactory
protected CustomSocketFactory(SSLSocketFactory factory)
For internal use only.
-
-
Method Detail
-
getDefault
public static CustomSocketFactory getDefault()
-
configure
public static void configure(String path, String password) throws org.pentaho.di.core.exception.KettleException
Configures this SSLSocketFactory so that it uses the given keystore as its truststore.- Throws:
org.pentaho.di.core.exception.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 classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(String host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(InetAddress host, int port) throws IOException, UnknownHostException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(InetAddress host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoclose) throws IOException, UnknownHostException
- Specified by:
createSocket
in classSSLSocketFactory
- Throws:
IOException
UnknownHostException
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuites
in classSSLSocketFactory
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
-
-