Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes how can i hide the password field in context.Xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how can i hide the password field in context.Xml file" Watch "how can i hide the password field in context.Xml file" New topic
Author

how can i hide the password field in context.Xml file

sandeep tava
Greenhorn

Joined: Apr 02, 2008
Posts: 9
My requirement is :

i have to provide encryption for the password field in context.xml file i.e.
when i enter the password,it must be seen in some other format like dots,stars or some other unusual format..
Is it Possible?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The file (and its contents) is unencrypted, so it will always show the actual password. But it's not meant for production uses anyway; for that, use a JDBCRealm or DataSourceRealm. Then the password can be digested in the DB (which is a secure way of storing it).
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how can i hide the password field in context.Xml file
 
It's not a secret anymore!