1 Reply Latest reply on Apr 28, 2006 11:48 AM by David Tauzell

    Problem using the SecureIdentityLoginModule to encrypt datas

    David Tauzell Newbie

      I followed instructions to setup and configure my datasouce to use the SecureIdentityLoginModule.

      When my application tried to access a connection it get:
      2006-04-28 10:07:11,020 DEBUG [org.jboss.resource.security.SecureIdentityLoginModule] Failed to decode password
      javax.crypto.IllegalBlockSizeException: Input length (with padding) not multiple
      of 8 bytes
      at com.sun.crypto.provider.SunJCE_h.a(DashoA6275)

      I used the program (org.jboss.resource.security.SecureIdentityLoginModule) to encrypt my password an placed that into my application policy:

      <application-policy name = "EncryptDBPassword">

      <login-module code = "org.jboss.resource.security.SecureIdentityLoginM
      odule"
      flag = "required">
      <module-option name = "username">comsrw</module-option>
      <module-option name = "password">22b53669e0c66d</module-option>
      <module-option name = "managedConnectionFactoryName">jboss.jca:se
      rvice=LocalTxCM,name=RxHubTxDS</module-option>
      </login-module>

      </application-policy>

      I am running jboss 3.2.6