Adding Security Management to an App

I dont know if this is possible but I am trying to do the following

and have no idea where to look.

I have an application that can load Plugins. Specifically 2

"modules" are communicating on a network or the internet and

they can share their plugins which are hot loaded with a custom

classloader. I want to disallow the whole program running in this JVM

from accessing anything that might harm the computer - or at the

very least File reading and writing. Im vaguely familiar with Security

Managers a la' Applets but not with Apps.

Thanks for any help.

[617 byte] By [TuringPesta] at [2007-11-27 4:52:23]
# 1

I guess this JavaWorld article says it all:

http://www.javaworld.com/javaworld/jw-11-1997/jw-11-hood.html?page=2

"Although you can install only one security manager, you can write the security manager so that it establishes multiple security policies. In addition to the "check" methods, the security manager also has methods that allow you to determine if a request is being made either directly or indirectly from a class loaded by a class loader object, and if so, by which class loader object. This enables you to implement a security policy that varies depending on which class loader loaded the classes making the request."

Score.

TuringPesta at 2007-7-12 10:06:23 > top of Java-index,Java Essentials,Java Programming...