• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to achieve secured data transfer through FTPS/SFTP

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a requirement of uploading/downloading a file to/from server in my java application. Currently I am using Jakarta's commons.net.ftp APIs for it. Now the requirement is that this data transfer should be secured. So this FTP protocol should be replaced by either FTPS or SFTP.
My question is -
1. FTPS is nothing but FTP over secured socket layer. So if server is changed to support FTPS then do I need to change my client API also or there is no need to change my client API which use commons.net.ftp API.

2. If I need to change client API also then which API I can use for FTPS and which API I can use for SFTP. I found some APIs(Secure FTP factory from JScape, edtFTPj/PRO from enterprisedt etc) but they all are not free.

Plz guide me how should I proceed.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

j-ftp does this with a GUI; if it doesn't have an API already, then it should be possible to build one for it, since the source is available.
 
Brijesh Kadecha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried JSch API (www.jcraft.com). But the problem is that when I tried to execute its example then it gave me following error.
java.lang.NoSuchMethodError: java.net.InetAddress: method getByAddress([B)Ljava/net/InetAddress; not found
at com.jcraft.jsch.PortWatcher.<clinit>(Unknown Source)
at com.jcraft.jsch.Session.disconnect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.ibm.jSch.sftp.Sftp.main(Sftp.java:48)

I found that JSch requires J2SE 1.4 or above (InetAddress is not supported in J2SE 1.3). But our application uses J2SE 1.3.

Please help me either by suggesting new API or by some work-around

Thanks in Advance.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
brijesh

this page mentions that the code will work if you install JCE along with jdk 1.3, which is available on sun's site.
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic