home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / AWTPermission.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  2.3 KB  |  78 lines

  1. /*
  2.  * @(#)AWTPermission.java    1.7 98/03/18
  3.  *
  4.  * Copyright 1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt;
  16.  
  17. import java.security.BasicPermission;
  18.  
  19. /**
  20.  * This class is for AWT permissions. 
  21.  * An AWTPermission contains a name but
  22.  * no actions list; you either have the named permission 
  23.  * or you don't.
  24.  * 
  25.  * <P>
  26.  * The name is the name of the AWT permission ("topLevelWindow",
  27.  * "systemClipboard", etc). The naming
  28.  * convention follows the  hierarchical property naming convention.
  29.  * Also, an asterisk could be used to represent all AWT permissions.
  30.  * <P>
  31.  * @see java.security.BasicPermission
  32.  * @see java.security.Permission
  33.  * @see java.security.Permissions
  34.  * @see java.security.PermissionCollection
  35.  * @see java.lang.SecurityManager
  36.  *
  37.  * @version 1.7 98/03/18
  38.  *
  39.  * @author Marianne Mueller
  40.  * @author Roland Schemers
  41.  */
  42.  
  43. public final class AWTPermission extends BasicPermission {
  44.  
  45.     /** use serialVersionUID from JDK 1.2 for interoperability */
  46.     private static final long serialVersionUID = 8890392402588814465L;
  47.  
  48.     /**
  49.      * Creates a new AWTPermission with the specified name.
  50.      * The name is the symbolic name of the AWTPermission, such as
  51.      * "topLevelWindow", "systemClipboard", etc. An asterisk 
  52.      * may be used to indicate all AWT permissions.
  53.      *
  54.      * @param name the name of the AWTPermission.
  55.      */
  56.  
  57.     public AWTPermission(String name)
  58.     {
  59.     super(name);
  60.     }
  61.  
  62.     /**
  63.      * Creates a new AWTPermission object with the specified name.
  64.      * The name is the symbolic name of the AWTPermission, and the
  65.      * actions String is currently unused and should be null. This
  66.      * constructor exists for use by the <code>Policy</code> object
  67.      * to instantiate new Permission objects.
  68.      *
  69.      * @param name the name of the AWTPermission.
  70.      * @param actions should be null.
  71.      */
  72.  
  73.     public AWTPermission(String name, String actions) 
  74.     {
  75.     super(name, actions);
  76.     }
  77. }
  78.