O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Applet Security Restrictions

It's pretty scary to think that a Web site can run code on your machine without your knowledge. Sun realized the potential problems with downloaded code and decided to create an applet sandbox—a restricted runtime environment that prevents an applet from corrupting the local system. The sandbox imposes several restrictions on an applet.

Tip

Some browsers relax the security policy for applets that are loaded from files on the local system—that is, files that are loaded with a type of "file:". If you load a file with "http:", even if the file is stored on you local drive, you will be under the full scrutiny of the security manager.

File Access Restrictions

File access is one of the most vulnerable places for malicious ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required