Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8058585

Update security guides with information about using module URLs in policy files

XMLWordPrintable

        In JDK 9 you will be able to specify a module URL as the codeBase in a policy file, ex:

        grant codeBase "jrt:jdk.zipfs" {
                 permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
                 permission java.lang.RuntimePermission "fileSystemProvider";
                 permission java.util.PropertyPermission "*", "read";
         };

        All classes in the module named jdk.zipfs are granted the specified permissions.

        The "Default Policy Implementation and Policy File Syntax" guide should be updated to include details of the module URL and some examples.

              rgallard Raymond Gallardo
              mullan Sean Mullan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: