325N/A * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 325N/A * This code is free software; you can redistribute it and/or modify it 325N/A * under the terms of the GNU General Public License version 2 only, as 325N/A * published by the Free Software Foundation. Oracle designates this 325N/A * particular file as subject to the "Classpath" exception as provided 325N/A * by Oracle in the LICENSE file that accompanied this code. 325N/A * This code is distributed in the hope that it will be useful, but WITHOUT 325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 325N/A * version 2 for more details (a copy is included in the LICENSE file that 325N/A * accompanied this code). 325N/A * You should have received a copy of the GNU General Public License version 325N/A * 2 along with this work; if not, write to the Free Software Foundation, 325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 325N/A * or visit www.oracle.com if you need additional information or have any 325N/A * This class is for JAXB permissions. A {@code JAXBPermission} 325N/A * contains a name (also referred to as a "target name") but 325N/A * no actions list; you either have the named permission 325N/A * The target name is the name of the JAXB permission (see below). 325N/A * The following table lists all the possible {@code JAXBPermission} target names, 325N/A * and for each provides a description of what the permission allows 325N/A * and a discussion of the risks of granting code the permission. 325N/A * <table border=1 cellpadding=5 summary="Permission target name, what the permission allows, and associated risks"> 325N/A * <th>Permission Target Name</th> 325N/A * <th>What the Permission Allows</th> 325N/A * <th>Risks of Allowing this Permission</th> 325N/A * <td>setDatatypeConverter</td> 325N/A * Allows the code to set VM-wide {@link DatatypeConverterInterface} 325N/A * via {@link DatatypeConverter#setDatatypeConverter(DatatypeConverterInterface) the setDatatypeConverter method} 325N/A * that all the methods on {@link DatatypeConverter} uses. 325N/A * Malicious code can set {@link DatatypeConverterInterface}, which has 325N/A * VM-wide singleton semantics, before a genuine JAXB implementation sets one. 325N/A * This allows malicious code to gain access to objects that it may otherwise 325N/A * not have access to, such as {@link Frame#getFrames()} that belongs to 325N/A * another application running in the same JVM. 325N/A * @see java.security.BasicPermission 325N/A * @see java.security.Permission 325N/A * @see java.security.Permissions 325N/A * @see java.security.PermissionCollection 325N/A * @see java.lang.SecurityManager 325N/A/* code was borrowed originally from java.lang.RuntimePermission. */ 325N/A * Creates a new JAXBPermission with the specified name. 325N/A * The name of the JAXBPermission. As of 2.2 only "setDatatypeConverter"