home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-20 | 2.1 KB | 77 lines |
- /*
- * @(#)SerializablePermission.java 1.5 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.io;
-
- import java.security.*;
- import java.util.Enumeration;
- import java.util.Hashtable;
- import java.util.StringTokenizer;
-
- /**
- * This class is for Serializable permissions. As with all BasicPermission
- * subclasses, a SerializablePermission 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 Serializable permission ("enableSubstitution")
- * <P>
- * @see java.security.BasicPermission
- * @see java.security.Permission
- * @see java.security.Permissions
- * @see java.security.PermissionCollection
- * @see java.lang.SecurityManager
- *
- * @version 1.2
- *
- * @author Joe Fialli
- */
-
- /* code was borrowed originally from java.lang.RuntimePermission. */
-
- public final class SerializablePermission extends BasicPermission {
-
- private String actions;
-
- /**
- * Creates a new SerializablePermission with the specified name.
- * The name is the symbolic name of the SerializablePermission, such as
- * "enableSubstitution", etc.
- *
- * @param name the name of the SerializablePermission.
- */
-
-
- public SerializablePermission(String name)
- {
- super(name);
- }
-
- /**
- * Creates a new SerializablePermission object with the specified name.
- * The name is the symbolic name of the SerializablePermission, 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 SerializablePermission.
- */
-
- public SerializablePermission(String name, String actions)
- {
- super(name, actions);
- }
- }
-