java security classloader

北城以北 提交于 2019-12-24 03:24:00

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!