This lesson shows you how the JavaTM platform's security architecture treats extensions. You will see how to tell what privileges are granted to extension software, and you will learn how to modify extension privileges by following some simple steps. In addition, you will learn how to seal packages within your extensions to restrict access to specified parts of your code.
This lesson has two sections:
This section contains some examples that show you what conditions must be met for extensions to be granted permissions to perform security-sensitive operations.
You can optionally seal packages in extension JAR files as an additional security measure. If a package is sealed, it means that all classes defined in that package must originate from a single JAR file. This section shows you how to modify an extension's manifest to seal extension packages.
You will find links and references to relevant security documentation at appropriate places throughout this lesson.For complete information on security, you can refer to the following:
- Security Features in Java SE trail (in this tutorial)
- Security guide