FileDocCategorySizeDatePackage
SSLClientSocketFactory.javaAPI DocExample639Wed Apr 19 11:20:18 BST 2000None

SSLClientSocketFactory.java

/****************************************************************
 *  Copyright (c) 1996, 1997, 1998, 1999 Phaos Technology Corp. All 
 *  rights reserved.
 ****************************************************************/

import java.net.*;
import java.io.*;
import java.rmi.server.*;

// Import Phaos SSLava Toolkit APIs
import crysec.SSL.*;

// Extend standard RMISocketFactory to use SSL.
public class SSLClientSocketFactory 
    implements RMIClientSocketFactory, Serializable {

  public Socket createSocket(String host, int port) 
      throws IOException {
    return ((Socket) new SSLSocket(host, port, new SSLParams()));
  }
}