...
Always assign appropriate permissions to code. When more control over the granularity of permissions is required, define custom permissions. (See guideline SEC10-J. Define custom security permissions for fine grained security for more information.)
Noncompliant Code Example (PermissionCollection
)
...
This example also violates guideline SEC11-J. Call the superclass's getPermissions method when writing a custom class loader.
...