This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

How to password protected Folder through Java

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Anurag Pathak
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!