[jboss-user] [JCA/JBoss] - Re: Using custom security domain to use encrypted password

priyankalavti do-not-reply at jboss.com
Tue Jul 29 04:13:41 EDT 2008


I am using MySQL database.

The mysql-ds.xml looks like:
  <local-tx-datasource>
  |     <jndi-name>testjndi</jndi-name>
  |     <connection-url>jdbc:mysql://localhost:3306/</connection-url>
  |     <security-domain>EncryptDBPassword</security-domain>
  |     <driver-class>org.gjt.mm.mysql.Driver</driver-class>
  |     <!--pooling parameters-->
  |     <min-pool-size>5</min-pool-size>
  |     <max-pool-size>100</max-pool-size>
  |     <blocking-timeout-millis>5000</blocking-timeout-millis>
  |     <idle-timeout-minutes>15</idle-timeout-minutes>
  |   </local-tx-datasource>
The application policy entry of login-config.xml looks like:
  <application-policy name="EncryptDBPassword">
  |     <authentication>
  |     <login-module code="com.test.security.jboss.loginmodule.DatabaseSecureLoginModule" flag="required">
  |       <module-option name="username">testuser</module-option>
  |       <module-option name="password">TESTUSER_KEY</module-option>
  |       <module-option name="managedConnectionFactoryName">jboss.jca:name=testjndi,service=LocalTxCM</module-option>
  |     </login-module>
  |     </authentication>
  |   </application-policy>

Regards,
Priyanka




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167249#4167249

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167249



More information about the jboss-user mailing list