其中,政策文件的位置为我的小程序,客户需要的访问权限的资源? [英] where policy file location for my applet that needs clients permission to access resource?

查看:133
本文介绍了其中,政策文件的位置为我的小程序,客户需要的访问权限的资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现,我必须写一个策略文件授予权限为我的小程序...

i find out that i must write a policy file to grant permission for my applet...

但我真的与它混淆...:(

but i really confused with it... :(

我想要写一个小程序,是一个地图浏览器,我需要保存在客户端运行我的小程序,为这有利于用户获得速度和时间观看安全本地地图瓷砖访问图像块...

i want to write a applet that is a map viewer, i need to save image tiles on client that run my applet to locally access tiles for gain speed and time safely viewing map which is benefit to user...

所以,小程序需要授予权限,读/写,并就客户TEMPDIR目录。

so, the applet needs grant permission to read/write and make directory on client tempdir.

现在,我想写一个策略文件来获得许可,我的小程序,我不希望用户参与到这一点,相反,我想自己写策略文件授予权限的小程序...

now, i want to write a policy file to gain permission to my applet,i don't want to involve the users to this,instead of, i want to write policy file by myself to grant permission for applet...

现在哪里是策略文件的位置?在applet的jar文件?
如何使用applet的策略文件?

now where is the policy file location? in applet jar file? how the applet use policy file?

请帮我

推荐答案

使用策略文件是不是一个好主意,因为它太复杂了用户编辑。
相反,你应该获得一个证书(费用$ 200 - $ 400 /年),并签署您的小程序。将允许您访问文件。

using the policy file is not a good idea because it's too complicated for users to edit. instead, you should obtain a certificate (costs $200 - $400/year) and sign your applet. will allow you to access files.

您可以尝试测试证书,您可以生成免费的。
可能会有帮助。

you can try a test certificate you can generate for free. This may help.

这篇关于其中,政策文件的位置为我的小程序,客户需要的访问权限的资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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