2362N/A * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * This class is for Serializable permissions. A SerializablePermission 0N/A * contains a name (also referred to as a "target name") but 0N/A * no actions list; you either have the named permission 0N/A * The target name is the name of the Serializable permission (see below). 0N/A * The following table lists all the possible SerializablePermission target names, 0N/A * and for each provides a description of what the permission allows 0N/A * and a discussion of the risks of granting code the permission. 0N/A * <table border=1 cellpadding=5 summary="Permission target name, what the permission allows, and associated risks"> 0N/A * <th>Permission Target Name</th> 0N/A * <th>What the Permission Allows</th> 0N/A * <th>Risks of Allowing this Permission</th> 0N/A * <td>enableSubclassImplementation</td> 0N/A * <td>Subclass implementation of ObjectOutputStream or ObjectInputStream 0N/A * to override the default serialization or deserialization, respectively, 0N/A * <td>Code can use this to serialize or 0N/A * deserialize classes in a purposefully malfeasant manner. For example, 0N/A * during serialization, malicious code can use this to 0N/A * purposefully store confidential private field data in a way easily accessible 0N/A * to attackers. Or, during deserialization it could, for example, deserialize 0N/A * a class with all its private fields zeroed out.</td> 0N/A * <td>enableSubstitution</td> 0N/A * <td>Substitution of one object for another during 0N/A * serialization or deserialization</td> 0N/A * <td>This is dangerous because malicious code 0N/A * can replace the actual object with one which has incorrect or 0N/A * malignant data.</td> 0N/A * @see java.security.BasicPermission 0N/A * @see java.security.Permission 0N/A * @see java.security.Permissions 0N/A * @see java.security.PermissionCollection 0N/A * @see java.lang.SecurityManager 0N/A * @author Joe Fialli 0N/A/* code was borrowed originally from java.lang.RuntimePermission. */ 0N/A * Creates a new SerializablePermission with the specified name. 0N/A * The name is the symbolic name of the SerializablePermission, such as 0N/A * "enableSubstitution", etc. 0N/A * @param name the name of the SerializablePermission. 0N/A * @throws NullPointerException if <code>name</code> is <code>null</code>. 0N/A * @throws IllegalArgumentException if <code>name</code> is empty. 0N/A * Creates a new SerializablePermission object with the specified name. 0N/A * The name is the symbolic name of the SerializablePermission, and the 0N/A * actions String is currently unused and should be null. 0N/A * @param name the name of the SerializablePermission. 0N/A * @param actions currently unused and must be set to null 0N/A * @throws NullPointerException if <code>name</code> is <code>null</code>. 0N/A * @throws IllegalArgumentException if <code>name</code> is empty.