com.enterprisedt.net.ftp.ssl
Class SSLSocketUtils

java.lang.Object
  extended by com.enterprisedt.net.ftp.ssl.SSLSocketUtils

public class SSLSocketUtils
extends java.lang.Object

Utility class that allows 1.4 socket methods to be called while still being able to be compiled in 1.1.x

Version:
$Revision: 1.2 $
Author:
Bruce Blackshaw

Constructor Summary
SSLSocketUtils()
           
 
Method Summary
static com.enterprisedt.net.puretls.SSLSocket createSocket(com.enterprisedt.net.puretls.SSLContext ctx, java.net.InetAddress host, int port, int timeout)
          Create a connected SSLSocket, using a timeout if it is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLSocketUtils

public SSLSocketUtils()
Method Detail

createSocket

public static com.enterprisedt.net.puretls.SSLSocket createSocket(com.enterprisedt.net.puretls.SSLContext ctx,
                                                                  java.net.InetAddress host,
                                                                  int port,
                                                                  int timeout)
                                                           throws java.io.IOException
Create a connected SSLSocket, using a timeout if it is available. Availability is tested by trying to create instances of the required classes and methods (JRE 1.4+)

Parameters:
host - remote host to connect to
port - port on remote host
timeout - timeout in milliseconds on
Throws:
java.io.IOException


Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.