Documentation

The Java™ Tutorials
Hide TOC
Quick Tour of Controlling Applications快速浏览控制应用程序
Trail: Security Features in Java SE

Lesson: Quick Tour of Controlling Applications课程:快速浏览控制应用程序


Pre-requisite lesson:先决课程: Creating a Policy File创建策略文件

This lesson shows how to use a security manager to grant or deny access to system resources for applications. 本课程演示如何使用安全管理器授予或拒绝应用程序对系统资源的访问。The lesson also shows how resource accesses, such as reading or writing a file, are not permitted for applications that are run with a security manager unless explicitly allowed by a permission entry in a policy file.本课程还展示了在使用安全管理器运行的应用程序中,除非策略文件中的权限条目明确允许,否则不允许资源访问(如读取或写入文件)。

The steps for this lesson are:本课程的步骤如下:

  1. Observe Application Freedom遵守申请自由
  2. See How to Restrict Applications查看如何限制应用程序
  3. Set Up the Policy File to Grant the Required Permissions设置策略文件以授予所需的权限
  4. See the Policy File Effects请参见策略文件效果

Previous page: Previous Lesson
Next page: Observe Application Freedom