1 grant 2 Principal javax.security.auth.MyPrincipal "duke" 3 { 4 permission java.io.FilePermission "/home/duke", "read, write"; 5 }; 6 7 grant CodeBase "http://dummy.xxx", 8 Principal javax.security.auth.MyPrincipal "dummy" 9 { 10 permission java.lang.RuntimePermission "createClassLoader"; 11 }; 12 13 grant 14 Principal javax.security.auth.MyPrincipal "my", 15 Principal javax.security.auth.OtherPrincipal "other", 16 { 17 permission java.security.AllPermission; 18 }; 19 20 grant 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