Solved

Jboss connection string encryption

Posted on 2010-11-10
4
1,219 Views
Last Modified: 2013-12-02
HI

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.

Thanks


0
Comment
Question by:elimesika
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 34107669
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.
0
 
LVL 19

Author Comment

by:elimesika
ID: 34110978
HI

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.
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 34124385
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)
0
 
LVL 19

Author Closing Comment

by:elimesika
ID: 34134195
Thanks for your time.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question