I believe this exception gets thrown when CryptoManager calls 
System.getProperty(). Perhaps you need to add a 
java.security.PropertyPermission?

Running in an applet was never a design goal for JSS. Calling into a 
native library contradicts the ideal of an applet, which is supposed to 
be pure Java that runs in a sandbox. You also have the problem that the 
JSS, NSS, and NSPR shared libraries have to be installed on the target 
machine.

Assuming you have a plan for distributing the libraries, the other 
issues can probably be resolved by enabling the appropriate permissions. 
Perhaps some people who read this newsgroup have gotten it to work.

Krishnan Chellakarai wrote:

>Hi,
>
>I am using JSS API to access the Netscape certificate repository from an
>
>applet. When I call CryptoManage.initialize function from the applet, I
>get an security exception "netscape.security.AppletSecurityException:
>security.checkpropsaccess.key ".
>
>Does any body know why? Also what permission should I enable?
>
>Thanks
>Krish.
>PS: Same code works okay as a standalone app. This happens only in an
>applet.
>
>  
>



Reply via email to