Jboss connection string encryption


I am following http://learnertobeginner.blogspot.com/2010/07/how-to-use-encrypted-password-in-jboss.html to encrypt a connection string to the database.

All documentations I have seen claims that the same SecureIdentityLoginModule supports also decryption but no sample is provided nor the class documentation in http://docs.jboss.org/jbossas/javadoc/3.2.7/connector/org/jboss/resource/security/SecureIdentityLoginModule.html describes how to do that.

I need to know how to decrypt the password , please help.


LVL 19
Who is Participating?

Improve company productivity with a Business Account.Sign Up

ramazanyichConnect With a Mentor Commented:
I'm afraid that in that case you will need to decrypt it yourself (check the source code of securityIdentityLoginModule and you can copy decode method from there)
what do you want to achieve ?
if you check code of securityIdentityLoginModule - it has private method decode() to decode encrypted password which you provided in your login xml file and to use decoded password to perform login to jboss.
elimesikaAuthor Commented:

I have a tool that enables the user to change his db user/password , so , when I am opening this tool, I need to fill the password field with the decrypted password because this tool connects to the database and may change / store other application configuration.
elimesikaAuthor Commented:
Thanks for your time.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.