I have a signed applet on a website. Because of this, the Java security dialog box appears, and the user must be granted permission to the applets before they can do this. I want to do the following:
- I want the site to explain the security dialog to the user before it appears. The page will show some explanation text in a div, and after a few seconds the security dialog box will appear.
- If the user has already allowed the certificate in the previous session, he should just run the applet without any additional dialog box.
The problem is that the security dialog box appears as soon as the applet is embedded in the page. I can postpone the attachment, but there is no way to check its permissions from the applet itself, as it must do this before it is downloaded.
Perhaps I could download a second, regular applet that runs invisibly and checks permissions. But how am I going to do this? Are there any Java classes that can check if a certificate has been trusted by a client?
Thanks.
source share