Plugin for Decrypting Data Source Passwords in Jboss
P Lavti
Ranch Hand
Joined: Mar 27, 2007
Posts: 65
posted
0
hi,
I am using Jboss4.0.4 GA server and My SQL as DB. I can not not use cleartext password in mysql-ds.xml.
I have my own encryption and decryption API for the same.
Could you please let me know how to write an plugin for Jboss which will use my decryption API to decrypt the data source password and provide me the connection pooling for MySQL.
Use the same mechanism, but write your own login module using the SecureIdentityLoginModule as a template. It is the login module that employs the en/decryption algorithms.
I tried it using the SecureIdentityLoginModule as template for my class, and its working fine as well.
The only issue is I need to keep my custom class also in the same package "org.jboss.resource.security" else i'll get compiler error. I am not sure if its acceptable. Any suggetions!!!
The only issue is I need to keep my custom class also in the same package "org.jboss.resource.security" else i'll get compiler error. I am not sure if its acceptable. Any suggetions!!!
What error do you get? Can you post it? Is it a compiler error or a classloader error (when JBoss is starting)?
There is no problem with keeping your class in that same package - but you should package your class in your own jar.
P Lavti
Ranch Hand
Joined: Mar 27, 2007
Posts: 65
posted
0
Originally posted by Jaikiran Pai:
What error do you get? Can you post it? Is it a compiler error or a classloader error (when JBoss is starting)?
For the import of org.jboss.resource.security.SubjectActions, I get the compiler error "The type org.jboss.resource.security.SubjectActions is not visible", since SubjectActions has visibility only within the package. By keeping my custome class in package "org.jboss.resource.security" removes the error.
Originally posted by Peter Johnson:
There is no problem with keeping your class in that same package - but you should package your class in your own jar.
Originally posted by Peter Johnson: There is no problem with keeping your class in that same package - but you should package your class in your own jar.
I don't exactly know how the licenses work, but I always thought, creating your own class under the org.jboss package wasn't (legally) allowed. Isn't that the case?
P Lavti
Ranch Hand
Joined: Mar 27, 2007
Posts: 65
posted
0
This is what actually my next question was.
Having my custom class in the same package and then using it in production, Is it legal?
If not, then what kind off licencing formalities are required?
Otherwise I need write complete login module itself.
Thanks!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Plugin for Decrypting Data Source Passwords in Jboss