jdk/src/share/classes/java/awt/AWTPermission.java
author anthony
Tue, 05 May 2009 17:56:31 +0400
changeset 3444 18840bd1c784
parent 2 90ce3da70b43
child 4256 24d614d4764a
permissions -rw-r--r--
6818787: It is possible to reposition the security icon too far from the border of the window on X11 Summary: The constraints for the position of the icon are moved to the shared code Reviewed-by: art, dcherepanov
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1997-2005 Sun Microsystems, Inc.  All Rights Reserved.
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.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
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
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
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.awt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.security.BasicPermission;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * This class is for AWT permissions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * An <code>AWTPermission</code> contains a target name but
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * no actions list; you either have the named permission
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * or you don't.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * The target name is the name of the AWT permission (see below). The naming
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * convention follows the hierarchical property naming convention.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * Also, an asterisk could be used to represent all AWT permissions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * The following table lists all the possible <code>AWTPermission</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * target names, and for each provides a description of what the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * permission allows and a discussion of the risks of granting code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * the permission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * <table border=1 cellpadding=5 summary="AWTPermission target names, descriptions, and associated risks.">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * <th>Permission Target Name</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * <th>What the Permission Allows</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * <th>Risks of Allowing this Permission</th>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *   <td>accessClipboard</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *   <td>Posting and retrieval of information to and from the AWT clipboard</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *   <td>This would allow malfeasant code to share
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * potentially sensitive or confidential information.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 *   <td>accessEventQueue</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 *   <td>Access to the AWT event queue</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 *   <td>After retrieving the AWT event queue,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * malicious code may peek at and even remove existing events
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * from its event queue, as well as post bogus events which may purposefully
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * cause the application or applet to misbehave in an insecure manner.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 *   <td>accessSystemTray</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 *   <td>Access to the AWT SystemTray instance</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 *   <td>This would allow malicious code to add tray icons to the system tray.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 * First, such an icon may look like the icon of some known application
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 * (such as a firewall or anti-virus) and order a user to do something unsafe
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 * (with help of balloon messages). Second, the system tray may be glutted with
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
 * tray icons so that no one could add a tray icon anymore.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 *   <td>createRobot</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 *   <td>Create java.awt.Robot objects</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 *   <td>The java.awt.Robot object allows code to generate native-level
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 * mouse and keyboard events as well as read the screen. It could allow
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 * malicious code to control the system, run other programs, read the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 * display, and deny mouse and keyboard access to the user.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 *   <td>fullScreenExclusive</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 *   <td>Enter full-screen exclusive mode</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 *   <td>Entering full-screen exclusive mode allows direct access to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * low-level graphics card memory.  This could be used to spoof the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * system, since the program is in direct control of rendering.</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>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 *   <td>listenToAllAWTEvents</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 *   <td>Listen to all AWT events, system-wide</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 *   <td>After adding an AWT event listener,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 * malicious code may scan all AWT events dispatched in the system,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 * allowing it to read all user input (such as passwords).  Each
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 * AWT event listener is called from within the context of that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 * event queue's EventDispatchThread, so if the accessEventQueue
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 * permission is also enabled, malicious code could modify the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 * contents of AWT event queues system-wide, causing the application
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 * or applet to misbehave in an insecure manner.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 *   <td>readDisplayPixels</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 *   <td>Readback of pixels from the display screen</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
 *   <td>Interfaces such as the java.awt.Composite interface or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
 * java.awt.Robot class allow arbitrary code to examine pixels on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 * display enable malicious code to snoop on the activities of the user.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 *   <td>replaceKeyboardFocusManager</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
 *   <td>Sets the <code>KeyboardFocusManager</code> for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 *       a particular thread.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
 *   <td>When <code>SecurityManager</code> is installed, the invoking
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 *       thread must be granted this permission in order to replace
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 *       the current <code>KeyboardFocusManager</code>.  If permission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
 *       is not granted, a <code>SecurityException</code> will be thrown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
 *   <td>setAppletStub</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
 *   <td>Setting the stub which implements Applet container services</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 *   <td>Malicious code could set an applet's stub and result in unexpected
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 * behavior or denial of service to an applet.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
 *   <td>setWindowAlwaysOnTop</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 *   <td>Setting always-on-top property of the window: {@link Window#setAlwaysOnTop}</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 *   <td>The malicious window might make itself look and behave like a real full desktop, so that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 * information entered by the unsuspecting user is captured and subsequently misused </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>showWindowWithoutWarningBanner</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
 *   <td>Display of a window without also displaying a banner warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
 * that the window was created by an applet</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
 *   <td>Without this warning,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
 * an applet may pop up windows without the user knowing that they
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
 * belong to an applet.  Since users may make security-sensitive
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
 * decisions based on whether or not the window belongs to an applet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
 * (entering a username and password into a dialog box, for example),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
 * disabling this warning banner may allow applets to trick the user
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
 * into entering such information.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
 *   <td>toolkitModality</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
 *   <td>Creating {@link Dialog.ModalityType#TOOLKIT_MODAL TOOLKIT_MODAL} dialogs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
 *       and setting the {@link Dialog.ModalExclusionType#TOOLKIT_EXCLUDE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
 *       TOOLKIT_EXCLUDE} window property.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
 *   <td>When a toolkit-modal dialog is shown from an applet, it blocks all other
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
 * applets in the browser. When launching applications from Java Web Start,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
 * its windows (such as the security dialog) may also be blocked by toolkit-modal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
 * dialogs, shown from these applications.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 * <tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 *   <td>watchMousePointer</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
 *   <td>Getting the information about the mouse pointer position at any
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
 * time</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
 *   <td>Constantly watching the mouse pointer,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
 * an applet can make guesses about what the user is doing, i.e. moving
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
 * the mouse to the lower left corner of the screen most likely means that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
 * the user is about to launch an application. If a virtual keypad is used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
 * so that keyboard is emulated using the mouse, an applet may guess what
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
 * is being typed.</td>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
 * </tr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
 * </table>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
 * @see java.security.BasicPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
 * @see java.security.Permission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
 * @see java.security.Permissions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
 * @see java.security.PermissionCollection
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
 * @see java.lang.SecurityManager
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
 * @author Marianne Mueller
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
 * @author Roland Schemers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
public final class AWTPermission extends BasicPermission {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    /** use serialVersionUID from the Java 2 platform for interoperability */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    private static final long serialVersionUID = 8890392402588814465L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * Creates a new <code>AWTPermission</code> with the specified name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * The name is the symbolic name of the <code>AWTPermission</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * such as "topLevelWindow", "systemClipboard", etc. An asterisk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * may be used to indicate all AWT permissions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * @param name the name of the AWTPermission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * @throws NullPointerException if <code>name</code> is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @throws IllegalArgumentException if <code>name</code> is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    public AWTPermission(String name)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        super(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * Creates a new <code>AWTPermission</code> object with the specified name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * The name is the symbolic name of the <code>AWTPermission</code>, and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * actions string is currently unused and should be <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * @param name the name of the <code>AWTPermission</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * @param actions should be <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * @throws NullPointerException if <code>name</code> is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * @throws IllegalArgumentException if <code>name</code> is empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    public AWTPermission(String name, String actions)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        super(name, actions);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
}