test/jdk/java/net/httpclient/security/10.policy
branchhttp-client-branch
changeset 56089 42208b2f224e
parent 56054 352e845ae744
child 56265 ec34ae013fbe
equal deleted inserted replaced
56088:38fac6d0521d 56089:42208b2f224e
    39 // For proxy only. Not being tested
    39 // For proxy only. Not being tested
    40 grant codebase "file:${test.classes}/proxydir/-" {
    40 grant codebase "file:${test.classes}/proxydir/-" {
    41     permission java.net.SocketPermission "localhost:1024-", "accept,listen,connect";
    41     permission java.net.SocketPermission "localhost:1024-", "accept,listen,connect";
    42     permission java.net.SocketPermission "127.0.0.1:1024-", "connect,resolve";
    42     permission java.net.SocketPermission "127.0.0.1:1024-", "connect,resolve";
    43 };
    43 };
    44 
       
    45 grant codeBase "jrt:/jdk.incubator.httpclient" {
       
    46     permission java.lang.RuntimePermission "accessClassInPackage.sun.net";
       
    47     permission java.lang.RuntimePermission "accessClassInPackage.sun.net.util";
       
    48     permission java.lang.RuntimePermission "accessClassInPackage.sun.net.www";
       
    49     permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.misc";
       
    50 
       
    51     // ## why is SP not good enough. Check API @throws signatures and impl
       
    52     permission java.net.SocketPermission "*","connect,resolve";
       
    53     permission java.net.URLPermission "http:*","*:*";
       
    54     permission java.net.URLPermission "https:*","*:*";
       
    55     permission java.net.URLPermission "ws:*","*:*";
       
    56     permission java.net.URLPermission "wss:*","*:*";
       
    57     permission java.net.URLPermission "socket:*","CONNECT";  // proxy
       
    58 
       
    59     // For request/response body processors, fromFile, asFile
       
    60     permission java.io.FilePermission "<<ALL FILES>>","read,write";  // delete???
       
    61 
       
    62     permission java.util.PropertyPermission "jdk.httpclient.*","read";
       
    63     permission java.util.PropertyPermission "jdk.http.auth.*","read";
       
    64 
       
    65     permission java.net.NetPermission "getProxySelector";
       
    66 };
       
    67