需要客户端访问资源权限的小程序的策略文件位置在哪里? [英] where policy file location for my applet that needs clients permission to access resource?

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

问题描述

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

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...

因此,applet 需要授予在客户端 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...

现在策略文件位置在哪里?在小程序 jar 文件中?小程序如何使用策略文件?

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天全站免登陆