Announcement Announcement Module
No announcement yet.
Storing database credentials for RCP application Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • glenn2041
    started a topic Storing database credentials for RCP application

    Storing database credentials for RCP application

    Hi all,
    I'm developing an Eclipse RCP application that uses five separate databases & ldap. It'll be deployed via WebStart into our internal network from an instance of WebSphere. The problem is that storing unsecured credentials for use by BasicDataSource's & Spring LDAP are a security issue. This is obviously not an option to deploy with.

    What are your suggestions as how to solve this problem?
    Last edited by glenn2041; Nov 2nd, 2008, 08:00 PM.

  • tirtzab
    You can use the BasicTextEncryptor to encrypt the password in a properties file that the BasicDataSource is configured to use

    <bean id="fillInProperties" class="">
    		<constructor-arg ref="BasicTextEncryptor"/>
    		<property name="location">
    	<bean id="BasicTextEncryptor" class="org.jasypt.util.text.BasicTextEncryptor">
    		<property name="password">
    	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    		<property name="driverClassName">
    		<property name="url">
    		<property name="username">
    		<property name="password">

    Leave a comment: