< prev index next >

src/java.base/share/conf/security/java.policy

Print this page

        

@@ -1,7 +1,19 @@
-// default permissions granted to all domains
+//
+// This system policy file grants a set of default permissions to all domains
+// and can be configured to grant additional permissions to modules and other
+// code sources. The code source URL scheme for modules is "jrt".
+//
+// For example, to grant permission to read the "foo" property to the module
+// "com.greetings", the grant entry would look like:
+//
+// grant codeBase "jrt:/com.greetings" {
+//     permission java.util.PropertyPermission "foo", "read";
+// };
+//
 
+// default permissions granted to all domains
 grant {
     // allows anyone to listen on dynamic ports
     permission java.net.SocketPermission "localhost:0", "listen";
 
     // "standard" properies that can be read by anyone
< prev index next >