From: Jerry Jongerius <jerryj@datametrics.com>
To: "'java-security@java.sun.com'" <java-security@web1.javasoft.com>
Subject: Problem using a custom class loader in a trusted applet
Date: Wed, 22 Apr 1998 21:02:38 -0400
I have a Java application that uses a custom class loader. It works great.
I wanted to launch it from an applet, so:
(1) I created the applet stub class (that launched the app)
(2) Put the needed files in the classpath
I ran the applet and got security exceptions all over the place. I
eliminated the custom class loader and it works through the applet!
So, after looking at AppletSecurity, the key function call is inApplet(),
which simply returns Security.inClassLoader(), which is a huge problem
because a trusted applet, using a class loader will all of a sudden turn on
security for all new loaded classes!
How do I get a custom class loader to work in a trusted applet (so that
classes loaded by the custom class loader are trusted)? It appears that by
using a custom class loader, AppletSecurity.inApplet() /
Security.inClassLoader() will all of a sudden start returning true, thus
turning on security once again.
Any help would be greatly appreciated.
- Jerry