Interpret Yes/No (accept/deny) for signed applets

Hi,

I have signed my applet .jar file with an RSA certificate. The applet is working just fine except when the user is to grant access for it. If he waits for a while an exception occurs. It seems like the applet runs EVEN if it has not been granted.

My question is why and how I can prevent this from happening. Is there a clear way of reading user input from the permission dialog? Can I put the applet on hold in some way?! This seems quite basic to me, but still I can't find a solution.

It is very crusial for me to know whether the user grants the applet permission or not. The flow of the applet depends upon this.

Btw I get the following exception:

java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkExec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at se.infogate.hitnet.client.ip.impl.Win2KXPIPConfig.config(Win2KXPIPConfig.java:31)

at se.infogate.hitnet.client.ip.IPConfigApplet.changeIP(IPConfigApplet.java:66)

at se.infogate.hitnet.client.ip.IPConfigApplet.start(IPConfigApplet.java:46)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Many thanks in advance!

/Henrik

[1678 byte] By [HenkeJohanssona] at [2007-9-29 12:26:10]
# 1
You can't access the dialog, but you can always use AccessController.checkPermission(perm); to check whether you have permissions or not. You could place the check in the applet initialisation and display a notice to the user that he/she must grant the privileges.
jboa at 2007-7-15 2:17:55 > top of Java-index,Security,Signed Applets...
# 2
Hi there ! I too have the same doubt . Can any one please tell me how and where to specify the AccessController Properties ?Thanks in Advance !!
IT_Skilla at 2007-7-15 2:17:55 > top of Java-index,Security,Signed Applets...