Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / February 2006

Tip: Looking for answers? Try searching our database.

how do I use sun.plugin.security.PluginClassLoader??

Thread view: 
Edward Scott - 18 Feb 2006 00:29 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.