0 Replies Latest reply on Aug 10, 2016 2:30 AM by ashley shookhye

    change default paraphrase in SecureIdentityLoginModule

    ashley shookhye Newbie

      Hello Everyone,

       

      We are planning to encrypt the JBOSS datasource password. We have amended the standalone.xml and it works fine. We have followed this link Chapter 15. Encrypting Data Source Passwords.

       

      Now we want to change the default paraphrase in the class SecureIdentityLoginModule. We have downloaded the sources and imported into eclipse and we have changed "jaas is the way" to something else. then we exported the jar. When starting the jboss server in eclipse, we get the following error and the projects cannot be deployed.


      10:25:52,626 ERROR [org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer] (MSC service thread 1-9) Exception during createSubject()null: java.lang.ExceptionInInitializerError

        at org.jboss.security.auth.login.XMLLoginConfigImpl.getAppConfigurationEntry(XMLLoginConfigImpl.java:119)

        at javax.security.auth.login.LoginContext.init(LoginContext.java:259) [rt.jar:1.7.0_51]

        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:389) [rt.jar:1.7.0_51]

        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:466) [rt.jar:1.7.0_51]

        at org.jboss.security.authentication.SubjectActions$LoginContextAction.run(SubjectActions.java:179)

        at org.jboss.security.authentication.SubjectActions$LoginContextAction.run(SubjectActions.java:162)

        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_51]

        at org.jboss.security.authentication.SubjectActions.createLoginContext(SubjectActions.java:332)

        at org.jboss.security.authentication.JBossCachedAuthenticationManager.defaultLogin(JBossCachedAuthenticationManager.java:448)

        at org.jboss.security.authentication.JBossCachedAuthenticationManager.proceedWithJaasLogin(JBossCachedAuthenticationManager.java:383)

        at org.jboss.security.authentication.JBossCachedAuthenticationManager.authenticate(JBossCachedAuthenticationManager.java:371)

        at org.jboss.security.authentication.JBossCachedAuthenticationManager.isValid(JBossCachedAuthenticationManager.java:160)

        at org.jboss.security.plugins.JBossSecuritySubjectFactory.createSubject(JBossSecuritySubjectFactory.java:83)

        at org.jboss.jca.deployers.common.AbstractDsDeployer$1.run(AbstractDsDeployer.java:1019)

        at org.jboss.jca.deployers.common.AbstractDsDeployer$1.run(AbstractDsDeployer.java:1014)

        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_51]

        at org.jboss.jca.deployers.common.AbstractDsDeployer.createSubject(AbstractDsDeployer.java:1013)

        at org.jboss.jca.deployers.common.AbstractDsDeployer.deployDataSource(AbstractDsDeployer.java:562)

        at org.jboss.jca.deployers.common.AbstractDsDeployer.createObjectsAndInjectValue(AbstractDsDeployer.java:282)

        at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$AS7DataSourceDeployer.deploy(AbstractDataSourceService.java:271)

        at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.start(AbstractDataSourceService.java:111)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

      Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.jboss.security.PicketBoxLogger (implementation not found)

        at org.jboss.logging.Logger.getMessageLogger(Logger.java:2250)

        at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)

        at org.jboss.security.PicketBoxLogger.<clinit>(PicketBoxLogger.java:16)

        ... 26 more

       

      Is there a link that you can post whereby it shows how to change the paraphrase in the class?

       

      thanks to advise.

      Ashley