wood burning stoves 2.0*
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
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
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).


Ping & DNS - my free Android networking tools app
 
GeeCON Prague 2014
 
subject: how can i hide the password field in context.Xml file