If a user decides to not grant access privileges to a signed applet, how can I detect this (from JavaScript or otherwise) and redirect the user or perform some other operation?

Jayesh Nazre

Well there is nothing that JavaScript provides. But in your applet you can use the System class to get the Security Manager:

SecurityManager security = System.getSecurityManager();
After that you can use the checkPermission() method in the class to check whether your applet has any permission or not. For further reference see the following URL: http://java.sun.com/j2se/1.3/docs/api/.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact