Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Applet Security Problem




On May 1, 2006, at 9:27 AM, Prasad Rajagopal wrote:

Hi,
       The loadLibrary() method is called (internally) by the thrid party wrapper class(not my code). Also tried to give the exact module/filename with the exact filename extension. But still gave me this error.  
 
           _javascript_:
                    java.security.AcessControlException: access denied
                    java.lang.RuntimePermission loadLibrary.pkcs11wrapper) 
 
Sorry on this one. There is a java.security.AccessControlException class and I didn't find it earlier for some reason...

showc java.security.AccessControlException
showc: invoked with: java.security.AccessControlException
public class java.security.AccessControlException extends java.lang.SecurityException {
// Constructors
   public java.security.AccessControlException(java.lang.String);
   public java.security.AccessControlException(java.lang.String, java.security.Permission);
// Fields
   private static final long serialVersionUID;
   private java.security.Permission perm;
// Methods
   public java.security.Permission   getPermission();

If you could catch the exception here and indicate what permission is required?

 

<<< Here're the permissions you've got: >>>
<<< java.security.Permissions@7cd15d (
 (java.io.FilePermission  read)
)

This looks to be the only permission you actually have.

Assuming you can't do that and this is 1.5 I did just discover you can do this (With Safari, untested FireFox).
Start java preferences 
/Applications/Utilities/Java/J2SE 5.0/Java Preferences
First make sure you get the console when an applet runs.
     From the Advanced settings "Java console" should have "Show console" selected.
Then what I discovered is that from the "General" settings you can set the security debug property in the "Java Applet Runtime Parameters" text area.
For example

-Djava.security.debug=all
or 
-Djava.security.debug=access,failure

Then when your applet runs the security debug information will appear in the java console.

Again if you can determine exactly what Permission you don't have you would then understand the source of your problem. How you fix it I don't know, but knowing that would probably have to be first?


Mike Hall        mikehall at spacestar dot net



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Java Applet Security Problem (From: "Prasad Rajagopal" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.