Actually the question in the header is very clearly stated.
It is necessary to create (once, then read and write to it) a password-protected folder. How exactly can Java do this?
The known platform on which the application will run: Windows XP sp 2.
P.S. Google somehow could not intelligibly answer, or I asked him wrong = (