FTPS using JDK 1.4, Apache Commons, JScape, JSh
843790Sep 18 2008 — edited Jan 21 2009I want to write a stand-alone Java program (not web based, it is Java main class), I want to do FTPS (FTP over SSL) to a remote box outside the firewall. Following are my questions:
1. Does JDK 1.4 support it?
2. Does JDK 1.5 support it?
3. Does Apache Commons commons-net-1.4.1.jar support it in JDK 1.4?
If not, I may look into using JScape or JSh.
Any recommendation on how to write FTPS using JDK package 1.4?
I was thinking of using JDK 1.4 as follows, however do not know if it will support FTPS. However, JDK support is rudimentary.
URL url = new URL("ftp://user01:pass1234@ftp.foo.com/README.txt;type=i");
URLConnection urlc = url.openConnection();
InputStream is = urlc.getInputStream(); // To download
OutputStream os = urlc.getOutputStream(); // To upload
I have used Apache commons for FTP in the past, but it was not FTPS. I do not think that Apache commons supports FTPS. Please let me know, if Apache commons can also support FTPS.
As far as I know, JScape supports FTPS.
Any recommendation, or suggestion will be helpful.