3.3. Architecture Summary

As a summary of the overall process of how the Java 2 security architecture works, this section takes you through the handling of an applet or application. The following steps occur when viewing an applet, either through a Web browser or appletviewer or when running a Java application, possibly from the command line by invoking the program called java.

1.
A class file is obtained and accepted if it passes preliminary bytecode verification.
2.
The class’s code source is determined. If the code appears to be signed, this step includes signature verification.
3.
The set of static permissions, if any, to be granted to this class is determined, based on the class’s code source.
4.
A protection domain is created to mark the ...

Get Inside Java™ 2 Platform Security: Architecture, API Design, and Implementation, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.