JBoss Community

Re: Encrypted class loading with jboss 5.1

created by Ales Justin in JBoss Microcontainer - View the full discussion

You need 3 things:

 

(a) custom DecrypyterTranslator

 

(b) custom ClassLoaderPolicyModule -- similar to DecrypterClassLoaderPolicyModule

 

But instead of providing full CLPolicy, you simply add translator from (a).

 

@Override

   protected VFSClassLoaderPolicy determinePolicy()

   {

      VFSClassLoaderPolicy policy = super.determinePolicy();

      policy.addTranslator(new DecrypterTranslator(decrypter));

      return policy;

   }

 

(c) custom deployer which creates DecrypterClassLoaderPolicyModule

 

* http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk/classloader/src/main/java/org/jboss/demos/classloader/deployers/DecrypterClassLoaderDescribeDeployer.java

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community