com.myjavaworld.ftp.examples
Class SSLDownload

java.lang.Object
  extended by com.myjavaworld.ftp.examples.SSLDownload

public class SSLDownload
extends Object

This example demonstrates how to connect to an FTP site and download a file to the local system using SSL. This example assumes that the server is already set up for FTP over SSL. In order for this example to work, you must have server's certificate installed in /lib/security/jssecacerts file or /lib/security/cacerts file. For more information on this and to learn overriding procedures, please refer to the JSSE Reference Guilde that ships with JavaDoc 1.4.x. Or visit the URL http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html.

Version:
1.0
Author:
Sai Pullabhotla, psai [at] jMethods [dot] com

Constructor Summary
SSLDownload()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLDownload

public SSLDownload()
Method Detail

main

public static void main(String[] args)
                 throws InstantiationException,
                        ClassNotFoundException,
                        IllegalAccessException,
                        FTPException,
                        ConnectionException
Parameters:
args - command line arguments.
Throws:
InstantiationException - propogated
ClassNotFoundException - propogated
IllegalAccessException - propogated
FTPException - propogated
ConnectionException - propogated


Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.