• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1grant
2    Principal javax.security.auth.MyPrincipal "duke"
3{
4        permission java.io.FilePermission "/home/duke", "read, write";
5};
6
7grant CodeBase "http://dummy.xxx",
8    Principal javax.security.auth.MyPrincipal "dummy"
9{
10        permission java.lang.RuntimePermission "createClassLoader";
11};
12
13grant
14    Principal javax.security.auth.MyPrincipal "my",
15    Principal javax.security.auth.OtherPrincipal "other",
16{
17        permission java.security.AllPermission;
18};
19
20grant
21    Principal javax.security.auth.MyPrincipal "bunny"
22{
23        permission java.io.FilePermission "/home/bunny", "read, write";
24        permission java.lang.RuntimePermission "stopThread";
25};
26