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