限制插件中的某些Java代码 [英] Restrict Certain Java Code in a Plug-in
问题描述
我正在创建一个使用 Java插件框架的应用程序,以加载插件并将其集成到该程序.
I am creating an application which uses the Java Plugin Framework to load plug-ins and integrate them into the program.
我的问题是:有什么方法可以限制插件中的某些操作(例如启动新进程)?我想到的是类似Java WebStart的东西,即当应用程序要访问FileSytem时,系统会提示用户是否允许该操作.
My question is: Is there any way to restrict certain operations (such as starting a new process) in the plug-ins? What I have in mind is something like Java WebStart, i.e when the application wants to access the FileSytem, the user is prompted whether or not to allow the action.
我当时正在考虑创建一个安全管理器,如果可以的话,我该怎么做?
I was thinking of maybe creating a security manager and, if so, how can I do that?
推荐答案
我建议您看看这些
http://www.google.co .uk/search?q = system + set + security + manager + example
这篇关于限制插件中的某些Java代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!