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

  1. /*
  2.  * @(#)RuntimePermission.java    1.19 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.lang;
  16.  
  17. import java.security.*;
  18. import java.util.Enumeration;
  19. import java.util.Hashtable;
  20. import java.util.StringTokenizer;
  21.  
  22. /**
  23.  * This class is for runtime permissions. A RuntimePermission 
  24.  * contains a name but
  25.  * no actions list; you either have the named permission 
  26.  * or you don't.
  27.  * 
  28.  * <P>
  29.  * The name is the name of the runtime permission ("exit",
  30.  * "setFactory",
  31.  * "print.queueJob", etc). The naming
  32.  * convention follows the  hierarchical property naming convention.
  33.  * Also, an asterisk 
  34.  * may appear at the end of the name, following a ".", or by itself, to 
  35.  * signify a wildcard match. For example: "package.*" or "*" is valid, 
  36.  * "*package" or "a*b" is not valid.
  37.  * <P>
  38.  * @see java.security.BasicPermission
  39.  * @see java.security.Permission
  40.  * @see java.security.Permissions
  41.  * @see java.security.PermissionCollection
  42.  * @see java.lang.SecurityManager
  43.  *
  44.  * @version 1.19 98/03/18
  45.  *
  46.  * @author Marianne Mueller
  47.  * @author Roland Schemers
  48.  */
  49.  
  50. public final class RuntimePermission extends BasicPermission {
  51.  
  52.     /** use serialVersionUID from JDK 1.2 for interoperability */
  53.     private static final long serialVersionUID = 7399184964622342223L;
  54.  
  55.     /**
  56.      * Creates a new RuntimePermission with the specified name.
  57.      * The name is the symbolic name of the RuntimePermission, such as
  58.      * "exit", "setFactory", etc. An asterisk 
  59.      * may appear at the end of the name, following a ".", or by itself, to 
  60.      * signify a wildcard match.
  61.      *
  62.      * @param name the name of the RuntimePermission.
  63.      */
  64.  
  65.     public RuntimePermission(String name)
  66.     {
  67.     super(name);
  68.     }
  69.  
  70.     /**
  71.      * Creates a new RuntimePermission object with the specified name.
  72.      * The name is the symbolic name of the RuntimePermission, and the
  73.      * actions String is currently unused and should be null. This
  74.      * constructor exists for use by the <code>Policy</code> object
  75.      * to instantiate new Permission objects.
  76.      *
  77.      * @param name the name of the RuntimePermission.
  78.      * @param actions should be null.
  79.      */
  80.  
  81.     public RuntimePermission(String name, String actions) 
  82.     {
  83.     super(name, actions);
  84.     }
  85. }
  86.