Signed applet and javascript communication

Hi All,

I have an (jar) signed applet which I use to access system properties (e.g user.home). I also have a javascript code that communicates (call to a public function) with the applet to get the property "user.home" from the applet. Everything works fine in Java plugin 1.3 but since I have installed the latest plugin 1.4.2_01 from http://www.java.com/en/download/windows_automatic.jsp website I can not access the system properties even though everything in the code is same.

I can however still access public functions/variables from the same applet which do not access system properties in the new plugin 1.4.2_01.

The browser I am using is IE and OS is Windows 2000.

Does anybody know if Sun has changed the security policy for 1.4.2_01, in the new plugin for java-javascript communication to block access to functions which uses system property,fileIO, socket etc. even if they are signed applet?

Thanks in advance..

[963 byte] By [san_spunkya] at [2007-9-29 12:51:32]
# 1

When invokin applet methods via javascript, you are accessing privileged actions from an unsafe source.

Depending on your needs, you could either load the system variables in applet init into class variables and return the information contained in the class variables to javascript or wrap the method calls inside AccessController.doPrivileged() calls.

jboa at 2007-7-15 2:53:13 > top of Java-index,Security,Signed Applets...
# 2
Hi JBO,The AccessController.doPrivileged() function when I wrap it arround my functions works fine. Thank you for the help...
san_spunkya at 2007-7-15 2:53:13 > top of Java-index,Security,Signed Applets...
# 3
Hi,No problem, glad to be of help.
jboa at 2007-7-15 2:53:13 > top of Java-index,Security,Signed Applets...