Applet security

Since 1997 - after Microsoft realized that the Internet is important - you have to battle with the battle of Sun/Netscape and Microsoft. Java virtual machines and browsers support different technologies - especially in treating security.

You should read IBM's Java 2 Network Security (or local copy) or Sun's security page to get a deeper insight into Java security. In iX, 11 pp 202-205 you find special instructions for signing applets for Netscape or Explorer.

If you want to publish an applet in the internet which wants to break out of the Java-sandbox you have to do a lot of work and a lot of things to imagine:

Sun technology

With JDK 1.0 you can't break out of the sandbox.

With JDK 1.1 you can sign your code and the user/browser trusts you or not. See IBM's Java 2 Network Security or Sun's javakey tool for details of signing the code.

With JDK 1.2 for Netscape 4.x and Explorer 5 (with JDK-plugin) you have the choice to sign your applet code (or not) and the user trusts you (or not) and grants specific rights to you in his policy file (see also the JDK 1.2 security page. You have to:

I think (just like the authors of the Java 2 Network Security book) the best solution at this time is to develop code only for the Java-plugin 1.2 because of the following reasons:

Netscape technology

With JDK 1.1 for Netscape 4.x (with internal JDK 1.1.x; no JDK-plugin) you have to: If you want to start an applet without security checks (attention!) you can configure your Netscape to do so:

Microsoft technology

With Microsoft SDK 3.2 for Explorer 5 (with internal Microsoft Virtual Machine; no JDK-plugin) you have to:

18. November 1999, Josef Willenborg