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.protectedCustomSocketFactory(SSLSocketFactory factory)For internal use only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidconfigure()Configures this SSLSocketFactory so that it trusts any signer.static voidconfigure(String path, String password)Configures this SSLSocketFactory so that it uses the given keystore as its truststore.SocketcreateSocket(String host, int port)SocketcreateSocket(String host, int port, InetAddress client_host, int client_port)SocketcreateSocket(InetAddress host, int port)SocketcreateSocket(InetAddress host, int port, InetAddress client_host, int client_port)SocketcreateSocket(Socket socket, String host, int port, boolean autoclose)static CustomSocketFactorygetDefault()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:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(String host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(InetAddress host, int port) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(InetAddress host, int port, InetAddress client_host, int client_port) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(Socket socket, String host, int port, boolean autoclose) throws IOException, UnknownHostException
- Specified by:
createSocketin classSSLSocketFactory- Throws:
IOExceptionUnknownHostException
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
-