Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

password protecting folders using api in java

Posted on 2011-03-02
3
Medium Priority
?
260 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 800 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.
Suggested Courses

971 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