Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Siging an applet ... and what then

 
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
 
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.
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic