aspose file tools*
The moose likes Java in General and the fly likes How to password protected Folder through Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to password protected Folder through Java" Watch "How to password protected Folder through Java" New topic
Author

How to password protected Folder through Java

Anurag Pathak
Greenhorn

Joined: Jun 08, 2009
Posts: 23
Hi All,

This is Anurag Pathak.

I want a sample Java Code which will create password Protected folder.

so while accessing a folder it should ask password if valid folder should be visible else invisible.

Please help me in achieving this.

Regards

Looking forward for the reply.

Regards

Anurag Pathak

pathak_arg@yahoo.com
Marc Maréchal
Greenhorn

Joined: Jan 08, 2005
Posts: 10
Can you clearly explains what your application should do ?

What I understand from your explanations is that through your Java application :
- some folders must be visible ;
- when the user try to access one of the these visible folders, the user will required to enter password information;
- If the password information is not correct, the folder becomes invisible.

Is a password required to access a folder EACH TIME a folder is accessed ?
Has each folder a different password ?
Where are the password information stored : in your application or associated with the folders and obtained through the OS ?

Is there something else worth mentionning ?


Marc Marechal
SCJP5, SCBCD5, SCJD6


Marc Marechal
MCSE, CCNP, SCJP 5.0, SCBCD 5.0 (Beta), SCJD 6.0
Anurag Pathak
Greenhorn

Joined: Jun 08, 2009
Posts: 23
There is just One Folder on say C Drive I want to make it password protected Password will be taken from properties file thats it.

Please expand your suggesstions to make it achievble.

Thanks & Regards

Anurag Pathak

pathak_arg@yahoo.com
 
jQuery in Action, 2nd edition
 
subject: How to password protected Folder through Java