• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Accesing Files stored on remote server by using Credentials

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A web application hosted on an application server, say Webshpere, is providing file upload functionality. These files are supposed to be stored on a remote machine (basically a ‘file server’). This file server is in a secured environment and has strict access control mechanisms. How do we ensure that the folder in which these files will be ultimately stored will be accessible only to this application and no one else?

Approaches
1.The folder on the file server is given access to only one network user. In this case how does the web application program access this folder using the credentials used id:and password:? Is there an API in Java IO which allows to access a remote shared folder using specific credential?
 
Tanuja rj
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks I got the solution.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tanuja,

Can you please post the code that you have developed to upload files on a remote file system.
I'm trying to develop same functionality but haven't found the soultion yet.

Awaiting for your positive response
Thanks in advance
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"cute kany " welcome to Javaranch
please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.

cute kany wrote:
Can you please post the code that you have developed to upload files on a remote file system.
I'm trying to develop same functionality but haven't found the soultion yet.


We dont believe in giving out solutions that way, it denies the basic purpose of Javaranch that is learning in a friendly manner. Please see this for more information
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Tanuja rj " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic