{quote:jmpsi} . Do you know how that relates to classloaders? I mean, is it possible to have certain code, loaded by a certain classloader, run with a specified SecurityManager? {quote} First of all, you might wanna take a look at the {link:SecureClassLoader|url=http://java.sun.com/j2se/1.4.2/docs/api/java/security/SecureClassLoader.html}. The main idea is simple, the class loader uses a certain SecurityManager to determine the information about the class to know if that class should loaded or not. Such scenario happens, for example, in applets where they can't actually call any of the classes in the sun package. My suggestion is that you take a look at the Java Security book, which is {link:available online|url=http://www.unix.org.ua/orelly/java-ent/security/index.htm}. I know it's old but it talks about those scenarios. Give special attention to chapters 3,4 and 6.