19 // Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 // Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 // or visit www.oracle.com if you need additional information or have any |
20 // or visit www.oracle.com if you need additional information or have any |
21 // questions. |
21 // questions. |
22 // |
22 // |
23 |
23 |
24 grant codeBase "jrt:/jdk.incubator.httpclient" { |
|
25 permission java.lang.RuntimePermission "accessClassInPackage.sun.net"; |
|
26 permission java.lang.RuntimePermission "accessClassInPackage.sun.net.util"; |
|
27 permission java.lang.RuntimePermission "accessClassInPackage.sun.net.www"; |
|
28 permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.misc"; |
|
29 |
|
30 // ## why is SP not good enough. Check API @throws signatures and impl |
|
31 permission java.net.SocketPermission "*","connect,resolve"; |
|
32 permission java.net.URLPermission "http:*","*:*"; |
|
33 permission java.net.URLPermission "https:*","*:*"; |
|
34 permission java.net.URLPermission "ws:*","*:*"; |
|
35 permission java.net.URLPermission "wss:*","*:*"; |
|
36 permission java.net.URLPermission "socket:*","CONNECT"; // proxy |
|
37 |
|
38 // For request/response body processors, fromFile, asFile |
|
39 permission java.io.FilePermission "<<ALL FILES>>","read,write,delete"; |
|
40 |
|
41 // ## look at the different property names! |
|
42 permission java.util.PropertyPermission "jdk.http.auth.proxying.disabledSchemes","read"; |
|
43 permission java.util.PropertyPermission "jdk.http.auth.tunneling.disabledSchemes","read"; |
|
44 permission java.util.PropertyPermission "jdk.httpclient.HttpClient.log","read"; // name! |
|
45 permission java.util.PropertyPermission "jdk.httpclient.auth.retrylimit","read"; |
|
46 permission java.util.PropertyPermission "jdk.httpclient.connectionWindowSize","read"; |
|
47 permission java.util.PropertyPermission "jdk.httpclient.enablepush","read"; |
|
48 permission java.util.PropertyPermission "jdk.httpclient.hpack.maxheadertablesize","read"; |
|
49 permission java.util.PropertyPermission "jdk.httpclient.keepalive.timeout","read"; |
|
50 permission java.util.PropertyPermission "jdk.httpclient.maxframesize","read"; |
|
51 permission java.util.PropertyPermission "jdk.httpclient.maxstreams","read"; |
|
52 permission java.util.PropertyPermission "jdk.httpclient.redirects.retrylimit","read"; |
|
53 permission java.util.PropertyPermission "jdk.httpclient.windowsize","read"; |
|
54 permission java.util.PropertyPermission "jdk.httpclient.receiveBufferSize","read"; |
|
55 permission java.util.PropertyPermission "jdk.httpclient.bufsize","read"; |
|
56 permission java.util.PropertyPermission "jdk.httpclient.internal.selector.timeout","read"; |
|
57 permission java.util.PropertyPermission "jdk.internal.httpclient.debug","read"; |
|
58 permission java.util.PropertyPermission "jdk.internal.httpclient.hpack.debug","read"; |
|
59 permission java.util.PropertyPermission "jdk.internal.httpclient.hpack.log.level","read"; |
|
60 permission java.util.PropertyPermission "test.src","read"; |
|
61 |
|
62 permission java.net.NetPermission "getProxySelector"; |
|
63 |
|
64 permission java.security.SecurityPermission "createAccessControlContext"; |
|
65 }; |
|
66 |
|
67 // bootstrap to get the test going, it will do its own restrictions |
24 // bootstrap to get the test going, it will do its own restrictions |
68 grant codeBase "file:${test.classes}/*" { |
25 grant codeBase "file:${test.classes}/*" { |
69 permission java.security.AllPermission; |
26 permission java.security.AllPermission; |
70 }; |
27 }; |
71 |
|