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.
A class file is obtained and accepted if it passes preliminary bytecode verification.
The class’s code source is determined. If the code appears to be signed, this step includes signature verification.
The set of static permissions, if any, to be granted to this class is determined, based on the class’s code source.
A protection domain is created to mark the ...