|
Java example source code file (Comparator.Principal.Policy)
The Comparator.Principal.Policy Java example source code
// 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";
};
Other Java examples (source code examples)Here is a short list of links related to this Java Comparator.Principal.Policy source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.