Results 1 to 1 of 1
Thread: Java security framework
- 05-31-2012, 09:49 PM #1
Java security framework
I've started reading the docs for the security API, and I'm quite confused. The docs seem to suggest that permissions are granted per class (or per group of classes in a ProtectionDomain), but another source I was studying suggests permissions are granted per thread. Is it both?
Here's my situation: I'm writing an application that loads user-supplied plugins from a specified URL. Those plugins must subclass one of two classes, PassiveScript or ActiveScript. They may reference other user-supplied classes in the same URL classpath. The methods of passive scripts will be invoked in one of my application's threads. Active scripts will run in their own thread. I'm not terribly concerned about controlling the plugins' access to system resources. For the most part, allowing access is actually desirable. The main thing I want to prevent is the use of reflection to gain access to private fields and methods of PassiveScript and ActiveScript. So if I could prevent any class loaded by my URL class loader from using reflection, regardless of what thread the code is running in, that would be ideal. Is that possible?Get in the habit of using standard Java naming conventions!
- By Java Exam in forum OCMJEAReplies: 0Last Post: 04-11-2012, 06:06 PM
- By ramanareddy438 in forum Java AppletsReplies: 4Last Post: 12-13-2011, 05:00 PM
- By ajeeb in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 12-07-2010, 05:07 PM
- By Zosden in forum Java AppletsReplies: 43Last Post: 08-02-2008, 03:10 PM
- By boy22 in forum New To JavaReplies: 1Last Post: 07-24-2007, 12:59 AM