Applet Security Considerations
Generally speaking, applets are severely restricted as to what they are allowed to do on a user's system. They run, by default, in what is called the sandbox . The sandbox, which is implemented by the java.lang.SecurityManager class or a subclass of it, restricts applets from the following activities. Applets cannot
Read from or write to the client machine's file system.
Modify thread groups.
Connect to any host besides the host they were downloaded from.
Access any system properties related to the local machine's file system.
Because of these restrictions, an applet cannot execute code installed on a local machine, and therefore, an applet cannot print from the machine it is running on.
Tip
In Java 2, this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access