⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 safeserver.policy

📁 java 的164个例子的源代码,包括了 很多方面,供包括了19个方面的 源代码
💻 POLICY
字号:
// This file grants the SafeServer class the permissions it needs to load// Service classes through a URLClassLoader, and grants the Service classes// permission to read and write files in and beneath the directory specified// by the service.tmp system property.  Note that you'll need to edit the // URL that specifies the location of the SafeServer class, and that for // Windows systems, you'll need to replace "/" with "\\"// Grant permissions to the SafeServer class.  // Edit the directory for your system.grant codeBase "file:/home/david/Books/JavaExamples2/Examples" {     // Allow the server to listen for and accept network connections      // from any host on any port > 1024     permission java.net.SocketPermission "*:1024-", "listen,accept";     // Allow the server to create a class loader to load service classes     permission java.lang.RuntimePermission "createClassLoader";     // Give the server permission to read the directory that contains the     // service classes.  If we were using a network URL instead of a file URL     // we'd need to add a SocketPermission instead of a FilePermission     permission java.io.FilePermission "${service.dir}/-", "read";     // The server cannot grant permissions to the Service classes unless it     // has those permissions itself. So we give the server these two Service     // permissions.     permission java.util.PropertyPermission "service.tmp", "read";     permission java.io.FilePermission "${service.tmp}/-", "read,write";};// Grant permissions to classes loaded from the directory specified by the// service.dir system property.  If we were using a network URL instead of a// local file: URL, this line would have to be different.grant codeBase "file:${service.dir}" {     // Services can read the system property "service.tmp"           permission java.util.PropertyPermission "service.tmp", "read";     // And they can read and write files in the directory specified by     // that system property     permission java.io.FilePermission "${service.tmp}/-", "read,write";};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -