Solved

password protecting folders using api in java

Posted on 2011-03-02
3
242 Views
Last Modified: 2012-05-11
Hi,

I have some files in a folder which needs to be password protected using java. So i need to stop direct access from other users to open the folder but should be only accessible using the api.
This needs to be implemented in java only.

Please help me.

Thanks
0
Comment
Question by:ranga_kartik
  • 2
3 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 35024756
What is the operating system you are talking about - is it Window, Unix?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35024795

On Unix system you can create folders and make them accessible only to the user
who created them. Then you could allow other people to access them through your Java
program and may require credentials to do so. In this way these folders
will become accessible only after authentication.
Of course Unix administartor will still have access to this data.

This is a java-centric discussion about password protected files:
http://www.dreamincode.net/forums/topic/22760-creating-password-protected-files-through-java/
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 200 total points
ID: 35024916
This isn't practicably possible: access control to a file system is done at operating system level and therefore makes little sense for a cross-platform language like Java.

Consider instead using storage outside the file system, which of course you can implement in a platform-independent way
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars2 challenge 6 71
Exception after setting jdbc session management 2 38
create a gui in perl 3 46
Java Timer (static) 9 19
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now