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

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

问题描述

您好我已创建签名的applet自拍,但不能访问本地文件系统。什么都我做什么?

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

推荐答案

你需要用你的IO code的的PrivilegedAction

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.

然后你需要用你的code一PriviligedAction内。看到一些例子。

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

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

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