Home > Archive > Java Security > March 2004 > Another signed applet problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Another signed applet problem
|
|
|
| I have a signed applet that was working just fine before I upgraded to
1.4.2_04 and then it started giving me permission problems. I went
back to 1.4.2_01 and the problem remains. By 'went back' I mean I
de-installed the JRE and installed the _01 JRE.
I have the following in my .java.policy file:
grant signedBy "Hermes", codeBase
"http://localhost:8100/Hermes/Web/MaduraAppletSigned.jar" {
permission java.lang.RuntimePermission "usePolicy";
permission java.io.FilePermission "<<ALL FILES>>", "read";
permission java.io.FilePermission "<<ALL FILES>>", "execute";
permission java.lang.RuntimePermission
"accessClassInPackage.sun.jdbc.odbc";
permission java.util.PropertyPermission "file.encoding", "read";
permission java.util.PropertyPermission "user.home", "read";
permission java.util.PropertyPermission "file.separator", "read";
};
and I have signed the applet using jarsigner and the Hermes alias.
When I remove these permissions I get the browser prompt. When I
answer yes I get an access denied for the accessClassInPackage line.
Now, I understood when I set this up the first time that answering Yes
to the browser prompt gives me all permissions. So I think something
quite odd is happening.
Anyone have any ideas? Remember this was all working and I haven't
changed my build scripts.
Roger
| |
| Roedy Green 2004-03-31, 6:46 pm |
| On 30 Mar 2004 13:10:56 -0800, roger@senanque.co.nz (Roger) wrote or
quoted :
>I have a signed applet that was working just fine before I upgraded to
>1.4.2_04 and then it started giving me permission problems. I went
>back to 1.4.2_01 and the problem remains. By 'went back' I mean I
>de-installed the JRE and installed the _01 JRE.
see http://mindprod.com/wassup.html
to find out which JRE you are actually using.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
|
|
|
|