2362N/A * Copyright (c) 1997, 2004, 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 * The Permission class for reflective operations. A 0N/A * ReflectPermission is a <em>named permission</em> and has no 0N/A * actions. The only name currently defined is {@code suppressAccessChecks}, 0N/A * which allows suppressing the standard Java language access checks 0N/A * -- for public, default (package) access, protected, and private 0N/A * members -- performed by reflected objects at their point of use. 0N/A * The following table 0N/A * provides a summary description of what the permission allows, 0N/A * and discusses the risks of granting code the permission. 0N/A * <table border=1 cellpadding=5 summary="Table shows 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>suppressAccessChecks</td> 0N/A * <td>ability to access 0N/A * fields and invoke methods in a class. Note that this includes 0N/A * not only public, but protected and private fields and methods as well.</td> 0N/A * <td>This is dangerous in that information (possibly confidential) and 0N/A * methods normally unavailable would be accessible to malicious code.</td> 0N/A * @see java.security.Permission 0N/A * @see java.security.BasicPermission 0N/A * @see AccessibleObject 0N/A * @see Method#invoke 0N/A * @see Constructor#newInstance 0N/A * Constructs a ReflectPermission with the specified name. 0N/A * @param name the name of the ReflectPermission 0N/A * @throws NullPointerException if {@code name} is {@code null}. 0N/A * @throws IllegalArgumentException if {@code name} is empty. 0N/A * Constructs a ReflectPermission with the specified name and actions. 0N/A * The actions should be null; they are ignored. 0N/A * @param name the name of the ReflectPermission 0N/A * @param actions should be null 0N/A * @throws NullPointerException if {@code name} is {@code null}. 0N/A * @throws IllegalArgumentException if {@code name} is empty.