Java安全类加载器 [英] java security classloader

查看:58
本文介绍了Java安全类加载器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在实现使用 URLClassloader 动态加载类的服务。

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?

推荐答案

http:/ /java.sun.com/developer/technicalArticles/Networking/classloaders/ 可能有用

这篇关于Java安全类加载器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆