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