jdk/test/javax/security/auth/Subject/doAs/policy.two.principals
author martin
Wed, 02 Sep 2015 14:11:50 -0700
changeset 32427 c22b7e41adf3
parent 29529 54be38d2d0d1
permissions -rw-r--r--
8134984: Text files should end in exactly one newline Summary: automated fixup of newlines at end-of-file via the usual perl one-liner Reviewed-by: chegar, sherman

grant codeBase "file:NestedActionsTwoPrincipals.jar" {
    permission javax.security.auth.AuthPermission "getSubject";
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission javax.security.auth.AuthPermission "doAs";
    permission java.util.PropertyPermission "path.separator", "read";
    permission java.util.PropertyPermission "file.separator", "read";
    permission java.util.PropertyPermission "test.classes", "read";
    permission java.util.PropertyPermission "test.src", "read";
    permission java.util.PropertyPermission "test.java.opts", "read";
    permission java.util.PropertyPermission "java.home", "read";
    permission java.util.PropertyPermission "java.class.path", "read";
    permission java.io.FilePermission "NestedActions.tmp", "read,write,delete";
};

grant codeBase "file:WriteToFileAction.jar"
        Principal javax.security.auth.x500.X500Principal "cn=Duke" {
    permission javax.security.auth.AuthPermission "getSubject";
    permission javax.security.auth.AuthPermission "doAs";
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission java.util.PropertyPermission "java.class.path", "read";
    permission java.io.FilePermission "NestedActions.tmp", "read,write";
};

grant codeBase "file:ReadFromFileAction.jar"
        Principal javax.security.auth.x500.X500Principal "cn=Duke"{
    permission javax.security.auth.AuthPermission "getSubject";
    permission javax.security.auth.AuthPermission "doAs";
    permission java.util.PropertyPermission "java.class.path", "read";
    permission java.io.FilePermission "NestedActions.tmp", "read";
};

grant codeBase "file:ReadPropertyAction.jar"
        Principal javax.security.auth.x500.X500Principal "cn=Java" {
    permission javax.security.auth.AuthPermission "getSubject";
    permission javax.security.auth.AuthPermission "doAs";
    permission java.util.PropertyPermission "java.class.path", "read";
};