7 Replies Latest reply on Nov 16, 2014 10:25 PM by r225

    Extending AbstractPasswordCredentialLoginModule

    lduperval

      Hi,

      I want to create my own copy of SecureIdentityLoginModule where I only change the secrete key. I originally tried to create an exact copy of SecureIdentityLoginModule, built a jar with it and put it in server/lib. However, when I try to access it, I get an IllegalAccessError:

      2006-03-30 17:26:35,026 DEBUG [org.jboss.security.plugins.JaasSecurityManager.EncryptDBPassword] Login failure
      
      javax.security.auth.login.LoginException: java.lang.IllegalAccessError: tried to access class org.jboss.resource.security.SubjectActions from class org.jboss.resource.security.DbAccess
      


      The reason is that the spec doesn't allow this.

      So how can I change the secret key in the encode()/decode() routines? I am trying to avoid needing to distribute a custom version of JBoss. I want to be able to drop something in one of the directories and have JBoss use that instead.

      Can anyone help me?

      Thanks,

      L