This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41052
    
  43
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i hide the password field in context.Xml file
 
Similar Threads
how can i use jndi to connect to rhe database
how to Change * to # in password field
HTML Number encoding - User Input
Problem with connection pooling
Password encryption in tomcat 5.