7.1. Creating New Permission Types
Recall from Section 5.1 that J2SDK 1.2 introduced a new hierarchy of typed and parameterized access permissions, rooted by an abstract class, java.security.Permission. Other permissions are subclassed from either the Permission class or one of its subclasses and appear in relevant packages. For example, the FilePermission permission representing file system access is located in the java.io package. Other permission classes are
java.net.SocketPermission for access to network resources.
java.lang.RuntimePermission for access to runtime system resources, such as class loaders and threads
java.lang.PropertyPermission for access to system properties
java.awt.AWTPermission for access to windowing resources
As this list ...
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.