Java Security Classes
To explain the implementation of Java security we must first understand several key terms. Java system security, in a nutshell, is concerned with protection domains as implemented by the java.security.ProtectionDomain class. A protection domain associates a code source (java.security.CodeSource) with a principal (java.security.Principal) and also associates a code source with a set of permissible actions (java.security.Permission) (see Figure 8-1).
A code source (CodeSource) represents the location where the code was loaded, what is commonly known as a codebase (java.net.URL). This could be a local file system or a network location. Associated with the code source are principals represented by the security certificates. ...
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