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

  1. /*
  2.  * @(#)SerializablePermission.java    1.5 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.io;
  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 Serializable permissions. As with all BasicPermission
  24.  * subclasses, a SerializablePermission 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 Serializable permission ("enableSubstitution")
  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.2
  38.  *
  39.  * @author Joe Fialli
  40.  */
  41.  
  42. /* code was borrowed originally from java.lang.RuntimePermission. */
  43.  
  44. public final class SerializablePermission extends BasicPermission {
  45.  
  46.     private String actions;
  47.  
  48.     /**
  49.      * Creates a new SerializablePermission with the specified name.
  50.      * The name is the symbolic name of the SerializablePermission, such as
  51.      * "enableSubstitution", etc. 
  52.      *
  53.      * @param name the name of the SerializablePermission.
  54.      */
  55.  
  56.  
  57.     public SerializablePermission(String name)
  58.     {
  59.     super(name);
  60.     }
  61.  
  62.     /**
  63.      * Creates a new SerializablePermission object with the specified name.
  64.      * The name is the symbolic name of the SerializablePermission, 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 SerializablePermission.
  70.      */
  71.  
  72.     public SerializablePermission(String name, String actions) 
  73.     {
  74.     super(name, actions);
  75.     }
  76. }
  77.