运行的PrivilegedAction仍然签名的小程序失败,一个AccessControlException [英] Signed applet running a PrivilegedAction still fails with an AccessControlException

查看:303
本文介绍了运行的PrivilegedAction仍然签名的小程序失败,一个AccessControlException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有某种限制到什么是允许甚至签名applet特权操作?这里是堆栈跟踪:

Is there some sort of limit to what privileged actions are permitted even for signed applets? Here is the stack trace:

异常螺纹AWT-EventQueue的-2java.security.AccessControlException:访问被拒绝(java.lang.RuntimePermission loadLibrary.skype)
    在java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    在java.security.AccessController.checkPermission(AccessController.java:546)
    在java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    在java.lang.SecurityManager.checkLink(SecurityManager.java:818)
    在java.lang.Runtime.loadLibrary0(Runtime.java:817)
    在java.lang.System.loadLibrary(System.java:1045)
    在com.skype.connector.ConnectorUtils.loadLibrary(ConnectorUtils.java:321)
    在com.skype.connector.osx.SkypeFramework.init(SkypeFramework.java:44)
    在com.skype.connector.osx.OSXConnector.initializeImpl(OSXConnector.java:107)
    在com.skype.connector.Connector.initialize(Connector.java:485)
    在com.skype.connector.osx.OSXConnector.isRunning(OSXConnector.java:86)
    在com.skype.Skype.isRunning(Skype.java:172)

推荐答案

发现问题。该特权的操作是在我的小程序,我的小程序的罐子签字,但code,它需要的权限是在并非签署了另罐子。签约的其他jar解决了这一问题。另一件事是,甚至当我接了电话出特权动作包装的,它仍然有效,只要罐子签名。

Found the problem. The privileged action is in my applet and my applet's jar is signed but the code that's needing the privileges is in another jar that's not signed. Signing that other jar fixed the problem. Another thing is that even when I took the call out of the privileged action wrapper, it still works so long as the jars are signed.

这篇关于运行的PrivilegedAction仍然签名的小程序失败,一个AccessControlException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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