Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Siging an applet ... and what then

 
Stefan Geelen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I managed to sign a JAR file using Keytool and Jarsigner (for the Java Plug-in 1.3). I also generated a certificate.
OK, but what now ?
When I open a html file using the applet I get security exceptions (looking in the Java Console):
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read).
This happens when I click on a button that invokes the JFileChooser.
So where do I go wrong ?
I want to avoid that a user should use the policytool to grant this applet access.
I thaught that when the applet starts a window should pop-up with the certificate info ? This does not happen.
Also this window should say what kind of access the applet asks for (eg full permission to write to hard disk).
Do I have to extend my code with netscape.security.* classes ?
An what aboud the java.security.* classes ?
Does anyone can give me an explanation how I could solve this ?
Thx very much already,
Stefan
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stefan,
I think you might have made an error in signing your code. The great thing about the Plug-in is that we don't need to really worry about com.ms.security or com.netscape.security anymore. Try and follow this example.
Good Luck,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic