CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ | Grades

Applets

Applets
Introduction
Security

Applet security issues

  • To prevent applets from damaging a client system or from making it possible to damage a client system, security restrictions limit what an applet can do.
  • To overcome these security restrictions, you can create a signed applet. This indicates that the applet comes from a trusted source. Then, you can add rights to the signed applet.

What an applet can't do

  • Read, write, or delete files or databases on the client system.
  • Access information about the files or databases on the client system.
  • Run programs on the client system.
  • Access system properties for the client system except the Java version, the name and version of the operating system, and the characters used to separate directories, paths, and lines.
  • Make network connections to other servers available to the client system.

What an applet can do

  • Display user interface components and graphics.
  • Send keystrokes and mouse clicks back to the applet's server.
  • Make network connections to the applet's server.
  • Call public methods from other applets on the same web page.
Previous | The Applet | History | Security | Inheritance | The JApplet | Writing applet | Next