jdk/test/sun/security/provider/PolicyFile/Comparator.Combined.Policy
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
// should be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
grant principal com.sun.security.auth.UnixPrincipal "1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
    principal Comparator$PCompare2 "2" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
    permission java.util.PropertyPermission "foo", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
// should be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
grant principal Comparator$PCompare1 "1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    principal com.sun.security.auth.NTUserPrincipal "4" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
    permission java.util.PropertyPermission "bar", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
// should be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
grant principal com.sun.security.auth.UnixPrincipal "1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
    principal javax.security.auth.x500.X500Principal "cn=x500",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
    principal Comparator$PCompare2 "2" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
    permission java.util.PropertyPermission "hello", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
// should be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
grant principal Comparator$PCompare1 "1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
    principal com.sun.security.auth.NTUserPrincipal "4",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
    principal javax.security.auth.x500.X500Principal "cn=x500" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
    permission java.util.PropertyPermission "world", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
// should not be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
grant principal Comparator$PCompare1 "1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
    principal Comparator$PCompare3 "3" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
    permission java.util.PropertyPermission "foobar", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33