jdk/src/java.base/share/classes/java/lang/RuntimePermission.java
author dfuchs
Fri, 20 Nov 2015 19:26:16 +0100
changeset 33875 c1c71107d45f
parent 32107 67aa4920495c
child 40798 acb8f3cd80b6
permissions -rw-r--r--
8140364: JEP 264 Platform Logger API and Service Implementation Summary: Initial implementation for JEP 264 Platform Logger API and Service Reviewed-by: mchung, psandoz, rriggs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
30899
d2408e757489 8077350: JEP 102 Process API Updates Implementation
rriggs
parents: 30378
diff changeset
     2
 * Copyright (c) 1997, 2015, 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
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1940
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1940
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1940
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1940
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1940
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.lang;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.security.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.Enumeration;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.Hashtable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.StringTokenizer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
32107
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    34
 * This class is for runtime permissions. A {@code RuntimePermission}
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    35
 * contains a name (also referred to as a "target name") but no actions
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    36
 * list; you either have the named permission or you don't.
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    37
 * <p>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * The target name is the name of the runtime permission (see below). The
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * naming convention follows the  hierarchical property naming convention.
32107
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    40
 * Also, an asterisk may appear at the end of the name, following a ".",
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    41
 * or by itself, to signify a wildcard match. For example: "loadLibrary.*"
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    42
 * and "*" signify a wildcard match, while "*loadLibrary" and "a*b" do not.
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    43
 * <p>
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    44
 * The following table lists the standard {@code RuntimePermission}
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    45
 * target names, and for each provides a description of what the permission
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
    46
 * allows and a discussion of the risks of granting code the permission.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * <table border=1 cellpadding=5 summary="permission target name,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 *  what the target allows,and associated risks">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * <th>Permission Target Name</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * <th>What the Permission Allows</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <th>Risks of Allowing this Permission</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *   <td>createClassLoader</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *   <td>Creation of a class loader</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 *   <td>This is an extremely dangerous permission to grant.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * Malicious applications that can instantiate their own class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * loaders could then load their own rogue classes into the system.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * These newly loaded classes could be placed into any protection
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * domain by the class loader, thereby automatically granting the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * classes the permissions for that domain.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 *   <td>getClassLoader</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 *   <td>Retrieval of a class loader (e.g., the class loader for the calling
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 * class)</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 *   <td>This would grant an attacker permission to get the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 * class loader for a particular class. This is dangerous because
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 * having access to a class's class loader allows the attacker to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 * load other classes available to that class loader. The attacker
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 * would typically otherwise not have access to those classes.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
 *   <td>setContextClassLoader</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
 *   <td>Setting of the context class loader used by a thread</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 *   <td>The context class loader is used by system code and extensions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 * when they need to lookup resources that might not exist in the system
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 * class loader. Granting setContextClassLoader permission would allow
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 * code to change which context class loader is used
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 * for a particular thread, including system threads.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 *   <td>enableContextClassLoaderOverride</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 *   <td>Subclass implementation of the thread context class loader methods</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 *   <td>The context class loader is used by system code and extensions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 * when they need to lookup resources that might not exist in the system
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 * class loader. Granting enableContextClassLoaderOverride permission would allow
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * a subclass of Thread to override the methods that are used
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * to get or set the context class loader for a particular thread.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 * <tr>
1940
e81514210873 4167874: URL-downloaded jar files can consume all available file descriptors
michaelm
parents: 2
diff changeset
    99
 *   <td>closeClassLoader</td>
e81514210873 4167874: URL-downloaded jar files can consume all available file descriptors
michaelm
parents: 2
diff changeset
   100
 *   <td>Closing of a ClassLoader</td>
e81514210873 4167874: URL-downloaded jar files can consume all available file descriptors
michaelm
parents: 2
diff changeset
   101
 *   <td>Granting this permission allows code to close any URLClassLoader
e81514210873 4167874: URL-downloaded jar files can consume all available file descriptors
michaelm
parents: 2
diff changeset
   102
 * that it has a reference to.</td>
e81514210873 4167874: URL-downloaded jar files can consume all available file descriptors
michaelm
parents: 2
diff changeset
   103
 * </tr>
e81514210873 4167874: URL-downloaded jar files can consume all available file descriptors
michaelm
parents: 2
diff changeset
   104
 *
e81514210873 4167874: URL-downloaded jar files can consume all available file descriptors
michaelm
parents: 2
diff changeset
   105
 * <tr>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 *   <td>setSecurityManager</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 *   <td>Setting of the security manager (possibly replacing an existing one)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 * </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
 *   <td>The security manager is a class that allows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 * applications to implement a security policy. Granting the setSecurityManager
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 * permission would allow code to change which security manager is used by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 * installing a different, possibly less restrictive security manager,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 * thereby bypassing checks that would have been enforced by the original
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 * security manager.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 *   <td>createSecurityManager</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
 *   <td>Creation of a new security manager</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 *   <td>This gives code access to protected, sensitive methods that may
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
 * disclose information about other classes or the execution stack.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 *   <td>getenv.{variable name}</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
 *   <td>Reading of the value of the specified environment variable</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 *   <td>This would allow code to read the value, or determine the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 *       existence, of a particular environment variable.  This is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
 *       dangerous if the variable contains confidential data.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 *   <td>exitVM.{exit status}</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 *   <td>Halting of the Java Virtual Machine with the specified exit status</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
 *   <td>This allows an attacker to mount a denial-of-service attack
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
 * by automatically forcing the virtual machine to halt.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
 * Note: The "exitVM.*" permission is automatically granted to all code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 * loaded from the application class path, thus enabling applications
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 * to terminate themselves. Also, the "exitVM" permission is equivalent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 * "exitVM.*".</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
 *   <td>shutdownHooks</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
 *   <td>Registration and cancellation of virtual-machine shutdown hooks</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
 *   <td>This allows an attacker to register a malicious shutdown
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
 * hook that interferes with the clean shutdown of the virtual machine.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
 *   <td>setFactory</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
 *   <td>Setting of the socket factory used by ServerSocket or Socket,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
 * or of the stream handler factory used by URL</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 *   <td>This allows code to set the actual implementation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 * for the socket, server socket, stream handler, or RMI socket factory.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
 * An attacker may set a faulty implementation which mangles the data
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
 * stream.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
 *   <td>setIO</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
 *   <td>Setting of System.out, System.in, and System.err</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
 *   <td>This allows changing the value of the standard system streams.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
 * An attacker may change System.in to monitor and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
 * steal user input, or may set System.err to a "null" OutputStream,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 * which would hide any error messages sent to System.err. </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
 *   <td>modifyThread</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
 *   <td>Modification of threads, e.g., via calls to Thread
32033
bf24e33c7919 8132468: docs: replace <tt> tags (obsolete in html5) for java.io, java.lang, java.math
avstepan
parents: 30899
diff changeset
   172
 * {@code interrupt, stop, suspend, resume, setDaemon, setPriority,
bf24e33c7919 8132468: docs: replace <tt> tags (obsolete in html5) for java.io, java.lang, java.math
avstepan
parents: 30899
diff changeset
   173
 * setName} and {@code setUncaughtExceptionHandler}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
 * methods</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
 * <td>This allows an attacker to modify the behaviour of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
 * any thread in the system.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
 *   <td>stopThread</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
 *   <td>Stopping of threads via calls to the Thread <code>stop</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
 * method</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
 *   <td>This allows code to stop any thread in the system provided that it is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
 * already granted permission to access that thread.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
 * This poses as a threat, because that code may corrupt the system by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
 * killing existing threads.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
 *   <td>modifyThreadGroup</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
 *   <td>modification of thread groups, e.g., via calls to ThreadGroup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
 * <code>destroy</code>, <code>getParent</code>, <code>resume</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
 * <code>setDaemon</code>, <code>setMaxPriority</code>, <code>stop</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
 * and <code>suspend</code> methods</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
 *   <td>This allows an attacker to create thread groups and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
 * set their run priority.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
 *   <td>getProtectionDomain</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
 *   <td>Retrieval of the ProtectionDomain for a class</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
 *   <td>This allows code to obtain policy information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
 * for a particular code source. While obtaining policy information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
 * does not compromise the security of the system, it does give
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
 * attackers additional information, such as local file names for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
 * example, to better aim an attack.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
 *   <td>getFileSystemAttributes</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
 *   <td>Retrieval of file system attributes</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
 *   <td>This allows code to obtain file system information such as disk usage
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
 *       or disk space available to the caller.  This is potentially dangerous
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
 *       because it discloses information about the system hardware
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
 *       configuration and some information about the caller's privilege to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
 *       write files.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
 *   <td>readFileDescriptor</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
 *   <td>Reading of file descriptors</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
 *   <td>This would allow code to read the particular file associated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
 *       with the file descriptor read. This is dangerous if the file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
 *       contains confidential data.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
 *   <td>writeFileDescriptor</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
 *   <td>Writing to file descriptors</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
 *   <td>This allows code to write to a particular file associated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
 *       with the descriptor. This is dangerous because it may allow
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
 *       malicious code to plant viruses or at the very least, fill up
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
 *       your entire disk.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
 *   <td>loadLibrary.{library name}</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
 *   <td>Dynamic linking of the specified library</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
 *   <td>It is dangerous to allow an applet permission to load native code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
 * libraries, because the Java security architecture is not designed to and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
 * does not prevent malicious behavior at the level of native code.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
 *   <td>accessClassInPackage.{package name}</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
 *   <td>Access to the specified package via a class loader's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
 * <code>loadClass</code> method when that class loader calls
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
 * the SecurityManager <code>checkPackageAccess</code> method</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
 *   <td>This gives code access to classes in packages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
 * to which it normally does not have access. Malicious code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
 * may use these classes to help in its attempt to compromise
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
 * security in the system.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
 *   <td>defineClassInPackage.{package name}</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
 *   <td>Definition of classes in the specified package, via a class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
 * loader's <code>defineClass</code> method when that class loader calls
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
 * the SecurityManager <code>checkPackageDefinition</code> method.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
 *   <td>This grants code permission to define a class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
 * in a particular package. This is dangerous because malicious
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
 * code with this permission may define rogue classes in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
 * trusted packages like <code>java.security</code> or <code>java.lang</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
 * for example.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
 *   <td>accessDeclaredMembers</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
 *   <td>Access to the declared members of a class</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
 *   <td>This grants code permission to query a class for its public,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
 * protected, default (package) access, and private fields and/or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
 * methods. Although the code would have
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
 * access to the private and protected field and method names, it would not
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
 * have access to the private/protected field data and would not be able
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
 * to invoke any private methods. Nevertheless, malicious code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
 * may use this information to better aim an attack.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
 * Additionally, it may invoke any public methods and/or access public fields
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
 * in the class.  This could be dangerous if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
 * the code would normally not be able to invoke those methods and/or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
 * access the fields  because
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
 * it can't cast the object to the class/interface with those methods
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
 * and fields.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
 *   <td>queuePrintJob</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
 *   <td>Initiation of a print job request</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
 *   <td>This could print sensitive information to a printer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
 * or simply waste paper.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
 *   <td>getStackTrace</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
 *   <td>Retrieval of the stack trace information of another thread.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
 *   <td>This allows retrieval of the stack trace information of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
 * another thread.  This might allow malicious code to monitor the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
 * execution of threads and discover vulnerabilities in applications.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
 *   <td>setDefaultUncaughtExceptionHandler</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
 *   <td>Setting the default handler to be used when a thread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
 *   terminates abruptly due to an uncaught exception</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
 *   <td>This allows an attacker to register a malicious
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
 *   uncaught exception handler that could interfere with termination
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
 *   of a thread</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
 *   <td>preferences</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
 *   <td>Represents the permission required to get access to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
 *   java.util.prefs.Preferences implementations user or system root
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
 *   which in turn allows retrieval or update operations within the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
 *   Preferences persistent backing store.) </td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
 *   <td>This permission allows the user to read from or write to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
 *   preferences backing store if the user running the code has
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
 *   sufficient OS privileges to read/write to that backing store.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
 *   The actual backing store may reside within a traditional filesystem
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
 *   directory or within a registry depending on the platform OS</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
 *   <td>usePolicy</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
 *   <td>Granting this permission disables the Java Plug-In's default
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
 *   security prompting behavior.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
 *   <td>For more information, refer to Java Plug-In's guides, <a href=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
 *   "../../../technotes/guides/plugin/developer_guide/security.html">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
 *   Applet Security Basics</a> and <a href=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
 *   "../../../technotes/guides/plugin/developer_guide/rsa_how.html#use">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
 *   usePolicy Permission</a>.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
 * </tr>
30899
d2408e757489 8077350: JEP 102 Process API Updates Implementation
rriggs
parents: 30378
diff changeset
   332
 * <tr>
d2408e757489 8077350: JEP 102 Process API Updates Implementation
rriggs
parents: 30378
diff changeset
   333
 *   <td>manageProcess</td>
d2408e757489 8077350: JEP 102 Process API Updates Implementation
rriggs
parents: 30378
diff changeset
   334
 *   <td>Native process termination and information about processes
d2408e757489 8077350: JEP 102 Process API Updates Implementation
rriggs
parents: 30378
diff changeset
   335
 *       {@link ProcessHandle}.</td>
d2408e757489 8077350: JEP 102 Process API Updates Implementation
rriggs
parents: 30378
diff changeset
   336
 *   <td>Allows code to identify and terminate processes that it did not create.</td>
d2408e757489 8077350: JEP 102 Process API Updates Implementation
rriggs
parents: 30378
diff changeset
   337
 * </tr>
30378
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   338
 *
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   339
 * <tr>
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   340
 *   <td>localeServiceProvider</td>
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   341
 *   <td>This {@code RuntimePermission} is required to be granted to
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   342
 *   classes which subclass and implement
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   343
 *   {@code java.util.spi.LocaleServiceProvider}. The permission is
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   344
 *   checked during invocation of the abstract base class constructor.
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   345
 *   This permission ensures trust in classes which implement this
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   346
 *   security-sensitive provider mechanism. </td>
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   347
 *   <td>See <a href= "../util/spi/LocaleServiceProvider.html">
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   348
 *   {@code java.util.spi.LocaleServiceProvider}</a> for more
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   349
 *   information.</td>
c631cf59315d 8079186: Add 'localeServiceProvider' target in the class description of RuntimePermission
naoto
parents: 25859
diff changeset
   350
 * </tr>
33875
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   351
 *
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   352
 * <tr>
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   353
 *   <td>loggerFinder</td>
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   354
 *   <td>This {@code RuntimePermission} is required to be granted to
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   355
 *   classes which subclass or call methods on
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   356
 *   {@code java.lang.System.LoggerFinder}. The permission is
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   357
 *   checked during invocation of the abstract base class constructor, as
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   358
 *   well as on the invocation of its public methods.
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   359
 *   This permission ensures trust in classes which provide loggers
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   360
 *   to system classes.</td>
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   361
 *   <td>See {@link java.lang.System.LoggerFinder java.lang.System.LoggerFinder}
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   362
 *   for more information.</td>
c1c71107d45f 8140364: JEP 264 Platform Logger API and Service Implementation
dfuchs
parents: 32107
diff changeset
   363
 * </tr>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
 * </table>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
 *
32107
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
   366
 * @implNote
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
   367
 * Implementations may define additional target names, but should use naming
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
   368
 * conventions such as reverse domain name notation to avoid name clashes.
67aa4920495c 8077055: Allow other named SecurityPermissions, RuntimePermissions, and AuthPermissions to be used
mullan
parents: 32033
diff changeset
   369
 *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
 * @see java.security.BasicPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
 * @see java.security.Permission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
 * @see java.security.Permissions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
 * @see java.security.PermissionCollection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
 * @see java.lang.SecurityManager
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
 * @author Marianne Mueller
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
 * @author Roland Schemers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
public final class RuntimePermission extends BasicPermission {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
    private static final long serialVersionUID = 7399184964622342223L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
     * Creates a new RuntimePermission with the specified name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
     * The name is the symbolic name of the RuntimePermission, such as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
     * "exit", "setFactory", etc. An asterisk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
     * may appear at the end of the name, following a ".", or by itself, to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
     * signify a wildcard match.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     * @param name the name of the RuntimePermission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     * @throws NullPointerException if <code>name</code> is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
     * @throws IllegalArgumentException if <code>name</code> is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
    public RuntimePermission(String name)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
        super(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
     * Creates a new RuntimePermission object with the specified name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
     * The name is the symbolic name of the RuntimePermission, and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
     * actions String is currently unused and should be null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     * @param name the name of the RuntimePermission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     * @param actions should be null.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     * @throws NullPointerException if <code>name</code> is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     * @throws IllegalArgumentException if <code>name</code> is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
    public RuntimePermission(String name, String actions)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
        super(name, actions);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
}