jdk-24/jdk/test/sun/security/provider/PolicyFile/Comparator.Combined.Policy

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2007-12-01 00:00:00 +00:00
// should be granted
grant principal com.sun.security.auth.UnixPrincipal "1",
principal Comparator$PCompare2 "2" {
permission java.util.PropertyPermission "foo", "read";
};
// should be granted
grant principal Comparator$PCompare1 "1",
principal com.sun.security.auth.NTUserPrincipal "4" {
permission java.util.PropertyPermission "bar", "read";
};
// should be granted
grant principal com.sun.security.auth.UnixPrincipal "1",
principal javax.security.auth.x500.X500Principal "cn=x500",
principal Comparator$PCompare2 "2" {
permission java.util.PropertyPermission "hello", "read";
};
// should be granted
grant principal Comparator$PCompare1 "1",
principal com.sun.security.auth.NTUserPrincipal "4",
principal javax.security.auth.x500.X500Principal "cn=x500" {
permission java.util.PropertyPermission "world", "read";
};
// should not be granted
grant principal Comparator$PCompare1 "1",
principal Comparator$PCompare3 "3" {
permission java.util.PropertyPermission "foobar", "read";
};