Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / March 2004

Tip: Looking for answers? Try searching our database.

Another signed applet problem

Thread view: 
Roger - 30 Mar 2004 22:10 GMT
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 - 31 Mar 2004 23:21 GMT
>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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.