问题
I am implementing a service which uses a URLClassloader to load classes dynamically.
In the interest of security I would like to restrict the access of loaded classes. eg no network, file or db access etc.
Anybody got any good resources or tutorials on the web for this kind of thing?
回答1:
Google for "JavaSeal". But they didn't publish the code though.
回答2:
http://java.sun.com/developer/technicalArticles/Networking/classloaders/ might be useful
来源:https://stackoverflow.com/questions/1791060/java-security-classloader