package jcsi;

import java.io.*;
import java.net.*;
import java.rmi.server.*;
import javax.net.SocketFactory;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLServerSocket;
import javax.net.ssl.SSLSocketFactory;

public class SSLClientSocketFactory 
  implements RMIClientSocketFactory, Serializable
{
  private static SocketFactory defaultFactory 
    = SSLSocketFactory.getDefault();

  public Socket createSocket(String host, int port)
    throws IOException
  {
    Socket socket 
      = defaultFactory.createSocket(host, port);

    return socket;
  }
}
