jdk-24/test/jdk/sun/security/provider/PolicyFile/Comparator.Principal.Policy
2017-09-12 19:03:39 +02:00

19 lines
558 B
Plaintext

// should be granted
grant principal com.sun.security.auth.UnixPrincipal "1" {
permission java.util.PropertyPermission "foo", "read";
};
// should be granted
grant principal javax.security.auth.x500.X500Principal "cn=2",
principal com.sun.security.auth.NTUserPrincipal "2" {
permission java.util.PropertyPermission "bar", "read";
};
// should not be granted
grant principal javax.security.auth.x500.X500Principal "cn=2",
principal com.sun.security.auth.UnixPrincipal "1" {
permission java.util.PropertyPermission "foobar", "read";
};