2 Replies Latest reply on Jul 19, 2002 9:15 AM by J. Wolfgang Kaltz

    Encrypted password

    Andrew Samsonov Newbie

      Hi,
      how can I keep encrypted password for connection to database for CMP or BMP components? And then transmeet decrypted password to datasource of connection pool when applicatin deployed?

      Which way should I use?

      In the simple way I keep open password in the file mysql-service.xml (for example). But I want keep encrypted password anywhere.
      Please help
      Andrew

        • 1. Re: Encrypted password
          kiuma Newbie

          A friend of mine has developed some libs.
          I think there is something that may interest you
          there

          http://www.geocities.com/alexcoppo/

          • 2. Re: Encrypted password
            J. Wolfgang Kaltz Novice

            > Hi,
            > how can I keep encrypted password for connection to
            > database for CMP or BMP components? And then
            > transmeet decrypted password to datasource of
            > connection pool when applicatin deployed?

            I can only partially shed some light : if you have the encrypted password, then you cannot decrypt it anymore: this is the whole point of decrypting it. (I know, this is just a clarification, not a solution to your question)

            > In the simple way I keep open password in the file
            > mysql-service.xml (for example). But I want keep
            > encrypted password anywhere.

            If you are using as connection factory the MinervaSharedLocalCMFactory (as in the book example), you can provide an own implementation for the attribute
            "PrincipalMappingClass" - this way, you can read username & password from wherever you want, it doesn't have to be in the config file
            (Note: this is what I did in JBoss 2.4.x, don't know the details in 3.0)