my dog learned polymorphism*
The moose likes Tomcat and the fly likes Datasource password encryption with Tomcat 4.1.31 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Datasource password encryption with Tomcat 4.1.31" Watch "Datasource password encryption with Tomcat 4.1.31" New topic
Author

Datasource password encryption with Tomcat 4.1.31

Simon Lesage-Tremblay
Greenhorn

Joined: Oct 18, 2005
Posts: 2
<Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/test"> <parameter> <name>factory</name> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value> </parameter> <parameter> <name>driverClassName</name> <value>oracle.jdbc.driver.OracleDriver</value> </parameter> <parameter> <name>url</name> <value>jdbc racle:thin:@ipaddress ort B</value> </parameter> <parameter> <name>username</name> <value>myuser</value> </parameter> <parameter> <name>password</name> <value>IWANTTOENCRYPTTHISPASSWORD</value> </parameter> <parameter> <name>maxActive</name> <value>20</value> </parameter> <parameter> <name>maxIdle</name> <value>10</value> </parameter> <parameter> <name>maxWait</name> <value>-1</value> </parameter> </ResourceParams> ...

Thank you
Bala Koppula
Greenhorn

Joined: Nov 28, 2005
Posts: 2
I have similar requirement - How can I encrypt the datasource password in server.xml instead of displaying the clear-text password?

Simon, if you resolved your issue, please post your answer.

Regards,
Bala.
Simon Lesage-Tremblay
Greenhorn

Joined: Oct 18, 2005
Posts: 2
No, for the moment, I found no solution for that. Can anyone can help me?

Thank
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41150
    
  45
The need to encrypt data that sits on the server implies that you either distrust the administrators of the server, or the overall security of it. In either case I would advise to tackle the root problem, and not tinker with the symptoms.


Ping & DNS - my free Android networking tools app
Bala Koppula
Greenhorn

Joined: Nov 28, 2005
Posts: 2
I came across a post in this forum about using jce to handle this issue.
But no details on how to do it nor an example.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Datasource password encryption with Tomcat 4.1.31
 
Similar Threads
Strange oracle datasource problem in tomcat4.06 under solaris
Configuration multiple resource DB.
ERROR: "Could not retrieve connection info from pool"
Splitting an XML file
Configuring DataSource on Tomcat5.0