org.pentaho.di.trans.steps.ldapinput.store
Class CustomSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by javax.net.ssl.SSLSocketFactory
          extended by org.pentaho.di.trans.steps.ldapinput.store.CustomSocketFactory

public class CustomSocketFactory
extends SSLSocketFactory


Constructor Summary
CustomSocketFactory()
          Required for reflection.
 
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()
           
 
Methods inherited from class javax.net.SocketFactory
createSocket
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomSocketFactory

public CustomSocketFactory()
Required for reflection.

Method Detail

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