开发者

java.util.PropertyPermission file.encoding read for signed applet

开发者 https://www.devze.com 2023-02-26 10:59 出处:网络
i have an applet that is called by javascript from an html page. the applet enters the value fr开发者_JAVA百科om the page to an access database.

i have an applet that is called by javascript from an html page. the applet enters the value fr开发者_JAVA百科om the page to an access database. i have signed the applet but still "(java.util.PropertyPermission file.encoding read)" error is showing..

UPDATE: Ive read that when a signed applet is accessed from javascript, it behaves as an unsigned applet. How can we rectify it?


You have to wrap the calls which need more privileges in AccessController.doPrivileged(...).

Of course, first check that they are legitimate, i.e. they can't do anything bad even if called from evil JavasSript code.

0

精彩评论

暂无评论...
验证码 换一张
取 消