JBoss AS 7.1 - datasource how to encrypt password

前端 未结 5 1860
情深已故
情深已故 2021-02-07 07:28

In JBoss AS 5, I have a datasource defined in *-ds.xml but put username/encrypted password in *-jboss-beans.xml.

Now in JBoss AS 7.1, the datasource is defined in standa

5条回答
  •  别那么骄傲
    2021-02-07 08:03

    create simple project with jars( jboss-logging-3.1.4.GA-redhat-2.jar picketbox-4.1.1.Final-redhat-1.jar picketbox-commons-1.0.0.final-redhat-3.jar picketbox-infinispan-4.1.1.Final-redhat-1.jar) and run custom class with input args:

    public class Test {
    
        public static void main(String[] args) throws Exception {
            new org.picketbox.datasource.security.SecureIdentityLoginModule()
                    .main(args);
    
        }
    
    }
    

    Output will be: Encoded password: 3d5bc094c128...

提交回复
热议问题