I would like to use the LdapLoginModule(or any other module) in Jboss with encrypted credential i.e. I would like store encrypted credential in the config file instead of the clear text password. Can anyone tell me what the right approach for this would be? or maybe point me to some good resources that show how to do this. I am thinking how SecureIdentityLoginModule allows this to happen for Datasources, and I would like to do something similar for Ldap authentican.