jdk/test/javax/security/auth/Subject/doAs/policy.one.principal
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:NestedActionsOnePrincipal.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";
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 java.util.PropertyPermission "java.class.path", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    20
    permission java.io.FilePermission "NestedActions.tmp", "read,write";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    21
};
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
grant codeBase "file:ReadFromFileAction.jar"
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    24
        Principal javax.security.auth.x500.X500Principal "cn=Duke" {
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    25
    permission javax.security.auth.AuthPermission "getSubject";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    26
    permission javax.security.auth.AuthPermission "doAs";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    27
    permission java.util.PropertyPermission "java.class.path", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    28
    permission java.io.FilePermission "NestedActions.tmp", "read";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    29
};
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
grant codeBase "file:ReadPropertyAction.jar"
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    32
        Principal javax.security.auth.x500.X500Principal "cn=Duke" {
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    33
    permission javax.security.auth.AuthPermission "getSubject";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    34
    permission javax.security.auth.AuthPermission "doAs";
54be38d2d0d1 8048147: Privilege tests with JAAS Subject.doAs
asmotrak
parents:
diff changeset
    35
    permission java.util.PropertyPermission "java.class.path", "read";
32427
c22b7e41adf3 8134984: Text files should end in exactly one newline
martin
parents: 29529
diff changeset
    36
};