jdk/test/java/security/PermissionCollection/Concurrent.java
author amurillo
Wed, 15 Aug 2012 16:49:38 -0700
changeset 13465 d3fc5d192448
parent 5506 202f599c92aa
child 30820 0d4717a011d3
permissions -rw-r--r--
7191765: make jdk8 the default jprt release for hs24 Reviewed-by: jcoomes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 * @test
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 * @bug 4671598
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * @summary PermissionCollection is not properly synchronized
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.security.*; // AllPermission, BasicPermission, Permissions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.net.NetPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.net.SocketPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.io.FilePermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import java.util.PropertyPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import javax.security.auth.AuthPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import javax.security.auth.kerberos.DelegationPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import javax.security.auth.kerberos.ServicePermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
import javax.management.MBeanServerPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
import com.sun.rmi.rmid.ExecPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
import com.sun.rmi.rmid.ExecOptionPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
public class Concurrent {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    private static final int LIMIT1 = 2000;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    private static final int LIMIT2 = 1000;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    private static final boolean debug = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    private static final Map errors =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
        Collections.synchronizedMap(new HashMap());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    public static void main(String args[]) throws Exception {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        testPc(allp);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        testPc(filep);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        testPc(sockp);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
        testPc(propp);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        testPc(basicp);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
        testPc(delegatep);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        testPc(servicep);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        testPc(mbeanp);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
        testPc(unresp);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        testPerms();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        if (errors.size() > 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
            if (true) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                Iterator iter = errors.entrySet().iterator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                while (iter.hasNext()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                    System.out.println(iter.next());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
            throw (Exception) new Exception("Got errors");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    private static void testPc (final Permission[] perm) throws Exception {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        final PermissionCollection pc = perm[0].newPermissionCollection();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        new Thread() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
            {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                setDaemon(true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                start();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            public void run() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                    for (int i = 0; i < LIMIT1; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                        for (int j = 0; j < perm.length; j++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                            pc.add(perm[j]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
                            if (debug) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                                System.out.println("added " + perm[j]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                    errors.put(perm[0].getClass().getName(), e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
            for (int i = 0; i < LIMIT2; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
                boolean result = pc.implies(perm[perm.length-1]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
                if (debug) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                    System.out.println(perm[perm.length-1] + " implies " + result);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                synchronized (pc) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                    Enumeration en = pc.elements();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                    while (en.hasMoreElements()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                        Object obj = en.nextElement();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                        if (debug) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                            System.out.println(obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
            errors.put(perm[0].getClass().getName(), e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    private static void testPerms () throws Exception {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        final Permissions pc = new Permissions();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        new Thread() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
            {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                setDaemon(true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                start();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
            public void run() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                    for (int i = 0; i < LIMIT1; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                        for (int j = 0; j < permlist.length; j++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
                            for (int k = 0; k < permlist[j].length; k++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                                pc.add(permlist[j][k]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                    errors.put("java.security.Permissions", e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
            for (int i = 0; i < LIMIT2; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                for (int j = 0; j < permlist.length; j++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                    boolean result = pc.implies(permlist[j][0]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                    if (debug) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                        System.out.println(permlist[j][0] + " implies " + result);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                synchronized (pc) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                    Enumeration en = pc.elements();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
                    while (en.hasMoreElements()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
                        Object obj = en.nextElement();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                        if (debug) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                            System.out.println(obj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            errors.put("java.security.Permissions", e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    private static final Permission[] allp = new Permission[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        new AllPermission(), new AllPermission()};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    private static final Permission[] filep = new Permission[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        new FilePermission("/home/foobar", "read"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        new FilePermission("/home/foo", "write"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        new FilePermission("/home/foobar", "read,write"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    private static final Permission[] sockp = new Permission[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
        new SocketPermission("example.net", "connect"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
            new SocketPermission("www.sun.com", "resolve"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
            new SocketPermission("www.test1.com", "accept"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
            new SocketPermission("www.test3.com", "resolve,connect"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
            new SocketPermission("www.test4.com", "listen"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    private static final Permission[] propp = new Permission[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        new PropertyPermission("user.home", "read"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
            new PropertyPermission("java.home", "write"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
            new PropertyPermission("test.home", "write"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
            new PropertyPermission("test1.home", "read"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
            new PropertyPermission("test2.home", "read"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    private static final Permission[] basicp = new Permission[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
        new NetPermission("setDefaultAuthenticator"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
            new NetPermission("requestPasswordAuthentication"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
            new NetPermission("specifyStreamHandler")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    private static final Permission[] delegatep = new Permission[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        new DelegationPermission(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
            "\"host/foo.example.com@EXAMPLE.COM\" \"cn=John,o=imc,c=us\""),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        new DelegationPermission(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
            "\"user/rosanna@EXAMPLE.COM\" \"cn=John,o=imc,c=us\""),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        new DelegationPermission(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
            "\"host/bar.example.com@EXAMPLE.COM\" \"cn=John,o=imc,c=us\"")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    private static final Permission[] servicep = new Permission[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        new ServicePermission("krbtgt/EXAMPLE.COM@EXAMPLE.COM", "initiate"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        new ServicePermission("ldap/EXAMPLE.COM@EXAMPLE.COM", "initiate"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        new ServicePermission("imap/EXAMPLE.COM@EXAMPLE.COM", "accept"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        new ServicePermission("acap/EXAMPLE.COM@EXAMPLE.COM", "initiate"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        new ServicePermission("host/EXAMPLE.COM@EXAMPLE.COM", "initiate"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    private static final Permission[] mbeanp = new Permission[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        new MBeanServerPermission("createMBeanServer"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
        new MBeanServerPermission("findMBeanServer"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        new MBeanServerPermission("newMBeanServer"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        new MBeanServerPermission("releaseMBeanServer"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    private static final Permission[] unresp = new Permission[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        new UnresolvedPermission("com.unknown.TestClass", "UnknownPermission",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
            "read,write", null),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        new UnresolvedPermission("com.unknown.TestClass", "APermission",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            "read,write", null),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
        new UnresolvedPermission("com.unknown.TestClass", "BPermission",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
            "read,write", null),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
        new UnresolvedPermission("com.unknown.CClass", "CPermission",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
            "read,write", null),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        new UnresolvedPermission("com.unknown.DClass", "DUnknownPermission",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
            "read,write", null),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
        new UnresolvedPermission("com.unknown.EClass", "EUnknownPermission",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            "read,write", null),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    private static final Permission[][] permlist = new Permission[][]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
        allp, filep, sockp, propp, basicp, delegatep, servicep, mbeanp, unresp};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
}