Signing applets:
http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
second post and last post for the java class file using doprivileged
In 1.4.2 a bug was fixed that will now check if the entire stack is "trusted" to do
the current action.
If code is called from javascript an exception will be thrown, use doprivileged
check last post of the link above.