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 / October 2006

Tip: Looking for answers? Try searching our database.

Signed Applets and different JVMs

Thread view: 
phil@philhooper.net - 30 Oct 2006 18:53 GMT
Folks,

Apologies in advance if I'm asking stupid questions here but Java is
way outside my area of expertise and I really need some help.

We provide web-based applications that, in a few cases include a small,
signed Java applet to allow information to be posted across domains.
The applet code is really quite simple (even for me!) but one of our
clients is asking us to guarantee that the applet will work across The
Mircosoft JVM and Sun JVMs 13., 1.4 and 1.5 - I'm really not sure if we
can say this and am trying to avoid having to go through the pain of
testing it on all environments.

We have signed the applet using jarsigner for Sun (a .jar file) and
using signcode for Microsoft (a .cab file) but I'm not sure if this
enough to do the trick.

Spedific questions:

* When did the Java Plug-in switch from the JDK 1.1 security model to
JDK 2.0 security model?
* Will the signed .jar file work in all of these versions of the Sun
JVM?
* If not, can we ude JavaScript to determine which version of the
pulg-in is being used and then include a different applet tag for each
version?

I'm really a bit at a loss here so any information at all on how to do
all this would be greatly appreciated.

Thanks, in advance for your help,

Phil (Java newbie!)
Ben_ - 30 Oct 2006 20:13 GMT
> one of our
> clients is asking us to guarantee that the applet will work across The
> Mircosoft JVM and Sun JVMs 13., 1.4 and 1.5 - I'm really not sure if we
> can say this and am trying to avoid having to go through the pain of
> testing it on all environments.

How do you intend to assure you customer it works without testing ?

> We have signed the applet using jarsigner for Sun (a .jar file) and
> using signcode for Microsoft (a .cab file) but I'm not sure if this
> enough to do the trick.

Microsoft VM will be out of support by the end of 2007
(http://www.microsoft.com/mscorp/java/), so you'll probably want to limit
investment on this technology.
For discussion of Authenticode vs. Java signature, see the "Potential
Upgrade Issues" at
http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/upgrade-gu
ide/index.html
.

> Spedific questions:
>
> * When did the Java Plug-in switch from the JDK 1.1 security model to
> JDK 2.0 security model?

The product archive is here: http://java.sun.com/products/archive/.
The readme of 1.1.1_006 says it's designed for JDK 1.1 and 1.2. So I assume
using one or the other specification depends on what the developer
advertises as JVM requirement in its page.

> * Will the signed .jar file work in all of these versions of the Sun
> JVM?

I assume signature verification would work. That the applet would work is
another story: if the developer uses features only present in a certain
release, then it won't. So, ask the developer to assess this.

> * If not, can we ude JavaScript to determine which version of the
> pulg-in is being used and then include a different applet tag for each
> version?

The developer advertises its requirements in the HTML page and the Java
Plug-in can download and install a newer release if necessary.
See object/embed tag usage in
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html.

> I'm really a bit at a loss here so any information at all on how to do
> all this would be greatly appreciated.

I think the Java Plug-in FAQs answers all questions above and much more:
http://java.sun.com/products/plugin/reference/faqs/index.html.
Microsoft's Transition Guide will also prove helpful
(http://www.microsoft.com/mscorp/java).

> Thanks, in advance for your help,
>
> Phil (Java newbie!)


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.