Code example for PropertyPermission

0
    private static final PropertyPermission BAR =
                new PropertyPermission("bar", "read");
    private static final PropertyPermission FOOBAR =
                new PropertyPermission("foobar", "read");
    private static final PropertyPermission HELLO =
                new PropertyPermission("hello", "read");
    private static final PropertyPermission WORLD =
                new PropertyPermission("world", "read");
 
    private static final CodeSource cs =
                new CodeSource(null, (java.security.cert.Certificate[])null);
 
    private static final Principal[] p1 = new Principal[] {
                                new UnixPrincipal("1") }; 
 
    private static final Principal[] p2 = new Principal[] {
                                new X500Principal("cn=2"),
                                new NTUserPrincipal("2") };
 
    private static final Principal[] p3 = new Principal[] {
                                new UnixPrincipal("1"),