简体   繁体   English

授予对签名小程序的访问权限不起作用

[英]Granting access to signed applet not working

I have created signed applet to read file from client side. 我创建了签名小程序,以从客户端读取文件。 Now I have been facing problem with different roles of Operating System users. 现在,我已经遇到了操作系统用户角色不同的问题。

EG I tried a sample signed applet from the Sun site - it worked fine while I was logged on as administrator, but failed while logged on as a regular user. EG我尝试了一个来自Sun站点的签名小程序示例-当我以管理员身份登录时,它运行良好,但是以常规用户身份登录时,该程序失败。

I am using following environment: 我正在使用以下环境:

  • Operating System: Windows 7 作业系统:Windows 7
  • Browser: IE 8 浏览器:IE 8

I feel that it is definitely problem of operating system different roles. 我觉得这绝对是操作系统角色不同的问题。 But I have to deploy the signed applet functionality in non administrator role. 但是我必须以非管理员角色部署已签名的applet功能。

How can I do this without administrator role? 没有管理员角色怎么办?

I have created signed applet to read file from client side.. 我已经创建了签名的applet以从客户端读取文件。

It is not necessary to sign an applet to gain access to the client file system if the applet is deployed using JWS in a 1.6.0_10+ (Next Generation Plug-In) JRE. 如果在1.6.0_10 +(下一代插件)JRE中使用JWS部署了applet,则不必签署applet来访问客户端文件系统。 Such applets have access to the JNLP API FileContents object. 这样的小程序可以访问JNLP API FileContents对象。 Here is a demo. 这是一个演示。 of the FileContents object . FileContents对象的

..Please help how can i do without administrator role. ..请帮助我,没有管理员角色怎么办。

But ultimately, if the file access is barred (for the specific file in question) by the OS, there is nothing that Java can (or should) do about it. 但是最终,如果操作系统禁止文件访问(针对特定文件),Java对此将无能为力。

Perhaps the real problem is the exact path of this file. 可能真正的问题是此文件的确切路径 What is it? 它是什么? What does it do? 它有什么作用? Where is it located and can that path be changed? 它在哪里,该路径可以更改吗? A sub-directory of user.home is a good place to store anything of interest to the application that is subject to change. user.home的子目录是存储应用程序中可能发生变化的任何内容的好地方。

For storing small amounts of data, JWS also offers the PersistenceService to all apps., including sand-boxed. 为了存储少量数据,JWS还为所有应用程序(包括沙盒)提供了PersistenceService

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM