annotate test/javax/security/auth/Subject/doAs/policy.two.principals @ 11650:7969f7b6465e

8048147: Privilege tests with JAAS Subject.doAs Reviewed-by: weijun
author asmotrak
date Fri, 20 Mar 2015 16:01:59 +0800
parents
children a4299d47bd00
rev   line source
asmotrak@11650 1 grant codeBase "file:NestedActionsTwoPrincipals.jar" {
asmotrak@11650 2 permission javax.security.auth.AuthPermission "getSubject";
asmotrak@11650 3 permission javax.security.auth.AuthPermission "modifyPrincipals";
asmotrak@11650 4 permission javax.security.auth.AuthPermission "doAs";
asmotrak@11650 5 permission java.util.PropertyPermission "path.separator", "read";
asmotrak@11650 6 permission java.util.PropertyPermission "file.separator", "read";
asmotrak@11650 7 permission java.util.PropertyPermission "test.classes", "read";
asmotrak@11650 8 permission java.util.PropertyPermission "test.src", "read";
asmotrak@11650 9 permission java.util.PropertyPermission "test.java.opts", "read";
asmotrak@11650 10 permission java.util.PropertyPermission "java.home", "read";
asmotrak@11650 11 permission java.util.PropertyPermission "java.class.path", "read";
asmotrak@11650 12 permission java.io.FilePermission "NestedActions.tmp", "read,write,delete";
asmotrak@11650 13 };
asmotrak@11650 14
asmotrak@11650 15 grant codeBase "file:WriteToFileAction.jar"
asmotrak@11650 16 Principal javax.security.auth.x500.X500Principal "cn=Duke" {
asmotrak@11650 17 permission javax.security.auth.AuthPermission "getSubject";
asmotrak@11650 18 permission javax.security.auth.AuthPermission "doAs";
asmotrak@11650 19 permission javax.security.auth.AuthPermission "modifyPrincipals";
asmotrak@11650 20 permission java.util.PropertyPermission "java.class.path", "read";
asmotrak@11650 21 permission java.io.FilePermission "NestedActions.tmp", "read,write";
asmotrak@11650 22 };
asmotrak@11650 23
asmotrak@11650 24 grant codeBase "file:ReadFromFileAction.jar"
asmotrak@11650 25 Principal javax.security.auth.x500.X500Principal "cn=Duke"{
asmotrak@11650 26 permission javax.security.auth.AuthPermission "getSubject";
asmotrak@11650 27 permission javax.security.auth.AuthPermission "doAs";
asmotrak@11650 28 permission java.util.PropertyPermission "java.class.path", "read";
asmotrak@11650 29 permission java.io.FilePermission "NestedActions.tmp", "read";
asmotrak@11650 30 };
asmotrak@11650 31
asmotrak@11650 32 grant codeBase "file:ReadPropertyAction.jar"
asmotrak@11650 33 Principal javax.security.auth.x500.X500Principal "cn=Java" {
asmotrak@11650 34 permission javax.security.auth.AuthPermission "getSubject";
asmotrak@11650 35 permission javax.security.auth.AuthPermission "doAs";
asmotrak@11650 36 permission java.util.PropertyPermission "java.class.path", "read";
asmotrak@11650 37 };