how on earth do I use the sun.plugin.security.PluginClassLoader?? I
cannot find any examples or proper documentation of it. I found some
descriptions here:
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_how.html.
but that is it, and does not tell me how to actually use the thing.
my java applet needs to read the contents of a directory. it used to be
signed using microsoft's jvm, but we are now migrating to sun. I can
sign the applet without a problem, but that is not enough. the applet
used to call on the com.ms.security classes with the following line:
PolicyEngine.assertPermission(PermissionID.FILEIO);
and now I need the equivalent for Sun, which I believe is the
sun.plugin.security.PluginClassLoader. but I do not know how I am
supposed to use it. can anyone provide any examples??
Edward Scott - 21 Feb 2006 20:08 GMT
never mind -- I think I found out what to do.
I don't think I need sun.plugin.security.PluginClassLoader at all
(although I never figued out how it is meant to be implemented).
instead I needed to put the code that read/writes files inside a
privilaged block.
http://java.sun.com/j2se/1.5.0/docs/guide/security/doprivileged.html
Edward Scott - 21 Feb 2006 20:11 GMT
never mind -- I think I found out what to do.
I don't think I need sun.plugin.security.PluginClassLoader at all
(although I never figued out how it is meant to be implemented).
instead I needed to put the code that read/writes files inside a
privilaged block.
http://java.sun.com/j2se/1.5.0/docs/guide/security/doprivileged.html