home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-20 | 2.3 KB | 78 lines |
- /*
- * @(#)AWTPermission.java 1.7 98/03/18
- *
- * Copyright 1997 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package java.awt;
-
- import java.security.BasicPermission;
-
- /**
- * This class is for AWT permissions.
- * An AWTPermission contains a name but
- * no actions list; you either have the named permission
- * or you don't.
- *
- * <P>
- * The name is the name of the AWT permission ("topLevelWindow",
- * "systemClipboard", etc). The naming
- * convention follows the hierarchical property naming convention.
- * Also, an asterisk could be used to represent all AWT permissions.
- * <P>
- * @see java.security.BasicPermission
- * @see java.security.Permission
- * @see java.security.Permissions
- * @see java.security.PermissionCollection
- * @see java.lang.SecurityManager
- *
- * @version 1.7 98/03/18
- *
- * @author Marianne Mueller
- * @author Roland Schemers
- */
-
- public final class AWTPermission extends BasicPermission {
-
- /** use serialVersionUID from JDK 1.2 for interoperability */
- private static final long serialVersionUID = 8890392402588814465L;
-
- /**
- * Creates a new AWTPermission with the specified name.
- * The name is the symbolic name of the AWTPermission, such as
- * "topLevelWindow", "systemClipboard", etc. An asterisk
- * may be used to indicate all AWT permissions.
- *
- * @param name the name of the AWTPermission.
- */
-
- public AWTPermission(String name)
- {
- super(name);
- }
-
- /**
- * Creates a new AWTPermission object with the specified name.
- * The name is the symbolic name of the AWTPermission, and the
- * actions String is currently unused and should be null. This
- * constructor exists for use by the <code>Policy</code> object
- * to instantiate new Permission objects.
- *
- * @param name the name of the AWTPermission.
- * @param actions should be null.
- */
-
- public AWTPermission(String name, String actions)
- {
- super(name, actions);
- }
- }
-