I had this same problem and solved it by instead extending ConfiguredIdentityLoginModule.
I overrode initialize() to fetch the password from the options map, decrypt it, then make
a new hashmap (the old one is unmodifiable) with the options, replacing the password with
the decrypted version, then calling super.initialize().
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197193#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...