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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29529
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     1
grant codeBase "file:NestedActionsTwoPrincipals.jar" {
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     2
    permission javax.security.auth.AuthPermission "getSubject";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     3
    permission javax.security.auth.AuthPermission "modifyPrincipals";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     4
    permission javax.security.auth.AuthPermission "doAs";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     5
    permission java.util.PropertyPermission "path.separator", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     6
    permission java.util.PropertyPermission "file.separator", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     7
    permission java.util.PropertyPermission "test.classes", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     8
    permission java.util.PropertyPermission "test.src", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
     9
    permission java.util.PropertyPermission "test.java.opts", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    10
    permission java.util.PropertyPermission "java.home", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    11
    permission java.util.PropertyPermission "java.class.path", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    12
    permission java.io.FilePermission "NestedActions.tmp", "read,write,delete";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    13
};
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    14
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    15
grant codeBase "file:WriteToFileAction.jar"
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    16
        Principal javax.security.auth.x500.X500Principal "cn=Duke" {
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    17
    permission javax.security.auth.AuthPermission "getSubject";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    18
    permission javax.security.auth.AuthPermission "doAs";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    19
    permission javax.security.auth.AuthPermission "modifyPrincipals";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    20
    permission java.util.PropertyPermission "java.class.path", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    21
    permission java.io.FilePermission "NestedActions.tmp", "read,write";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    22
};
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    23
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    24
grant codeBase "file:ReadFromFileAction.jar"
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    25
        Principal javax.security.auth.x500.X500Principal "cn=Duke"{
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    26
    permission javax.security.auth.AuthPermission "getSubject";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    27
    permission javax.security.auth.AuthPermission "doAs";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    28
    permission java.util.PropertyPermission "java.class.path", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    29
    permission java.io.FilePermission "NestedActions.tmp", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    30
};
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    31
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    32
grant codeBase "file:ReadPropertyAction.jar"
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    33
        Principal javax.security.auth.x500.X500Principal "cn=Java" {
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    34
    permission javax.security.auth.AuthPermission "getSubject";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    35
    permission javax.security.auth.AuthPermission "doAs";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    36
    permission java.util.PropertyPermission "java.class.path", "read";
32427
c22b7e41adf3 8134984: Text files should end in exactly one newline
martin
parents: 29529
diff changeset
    37
};