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 / May 2004

Tip: Looking for answers? Try searching our database.

Using two signed jars for an applet

Thread view: 
Chris Marko - 18 May 2004 13:05 GMT
Hi!

I want to provide a solution where i have one jar-archive where the
applet itself and all dialogs or what ever are in it and one
jar-archive where i have my utiliy-classes which provides a
SocketConnection for example. To use the SocketConnection the
jar-archive has to be signed but it seems to me, that it isn't,
because i always get a AccessControlerException (access denied). Both
jar-archives are signed but it doesn't work.

Can anyone help me?

Thanks in advance, Chris
Roedy Green - 19 May 2004 01:01 GMT
>To use the SocketConnection the
>jar-archive has to be signed but it seems to me, that it isn't,
>because i always get a AccessControlerException (access denied). Both
>jar-archives are signed but it doesn't work.

I think they also have to be signed with the same key.  Are you
regenerating your key on every sign?

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Chris Marko - 19 May 2004 12:33 GMT
> >To use the SocketConnection the
> >jar-archive has to be signed but it seems to me, that it isn't,
[quoted text clipped - 3 lines]
> I think they also have to be signed with the same key.  Are you
> regenerating your key on every sign?

I did the following:
1. i created a new key with the keytool
2. i signed both jar-files with the jarsigner and used for both the
key i have created with the keytool, so i think i use the same key, or
not?

As i tried to use only the jar-archive with the utility-classes as a
signed jar i didn't get the dialog where i have to grant the
permissions, that is why i think, that there are some problems with
this jar-file.
Roedy Green - 19 May 2004 18:48 GMT
>As i tried to use only the jar-archive with the utility-classes as a
>signed jar i didn't get the dialog where i have to grant the
>permissions, that is why i think, that there are some problems with
>this jar-file.

check the jar files with winzip to make sure they are complete. See
http://mindprod.com/jgloss/signedapplets.html
and http://mindprod.com/jgloss/jar.html
Signature

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.