Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Url pointing to XML file..

Status
Not open for further replies.

Tokhra

Programmer
Oct 1, 2003
134
ES
Hi all,

I've just written a xml authentication javabean, however im referencing the file via a url like so:


Is this the best way to do this? and lock out anyone but system from accessing the file? or should I take a c:\ approach?

Also whats the best way to store this url string so that when I send the code to my client they dont need me to compile it to install? a .ini file or something?

Any advice please?
Thanks,
Matt.
 
User validation is usually done via a database rather than a text file (such as xml), but if you must validate against a text file, I would certainly not publish it on a website. If you put the file in a dir such as context_root/password of your webapp, you can protect it (ie not display it) by using security filters if using tomcat 5 (and I think also v4). See :

I would also look into encrypting your passwords using the javax.crypto package.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top