For Programmers: Free Programming Magazines  


Home > Archive > Java Security > May 2004 > Using two signed jars for an applet









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 Using two signed jars for an applet
Chris Marko

2004-05-18, 8:39 am

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

2004-05-18, 9:32 pm

On 18 May 2004 05:05:17 -0700, chris.marko@gmx.at (Chris Marko) wrote
or quoted :

>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?


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

2004-05-19, 8:31 am

Roedy Green <look-on@mindprod.com.invalid> wrote in message news:<3u8la0d1lpcknmj9h6evt5jt1hjjntvchf@4ax.com>...
> On 18 May 2004 05:05:17 -0700, chris.marko@gmx.at (Chris Marko) wrote
> or quoted :
>
>
> 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

2004-05-19, 2:32 pm

On 19 May 2004 04:33:07 -0700, chris.marko@gmx.at (Chris Marko) wrote
or quoted :

>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
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com