自签名小程序是否可以访问本地文件系统 [英] Self Signed Applet Can it access Local File Systems

查看:25
本文介绍了自签名小程序是否可以访问本地文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我创建了一个自签名小程序,但无法访问本地文件系统.我该怎么办?

解决方案

你需要将你的 IO 代码封装在 PrivilegedAction.

通常,您需要使用您的测试证书对您的小程序进行签名,用户将看到一个警告,并且在加载小程序时必须接受该证书.

然后您需要将您的代码包装在 PriviligedAction 中.有关示例,请参阅this.>

Hi I have created a Self Signed Applet , but not able to access local files system .What have i to do ?

解决方案

you need to wrap your IO code inside PrivilegedAction.

Generally, you need to sign your applet with your test certificate, the user will see a warning and will have to accept the certificate when it loads the applet.

then you need to wrap your code inside a PriviligedAction. see this for some examples.

这篇关于自签名小程序是否可以访问本地文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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