Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxws/src/share/jaxws_classes/javax/xml/ws/WebServicePermission.java
38890 views
/*1* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.ws;2627import java.security.BasicPermission;2829/**30* This class defines web service permissions.31* <p>32* Web service Permissions are identified by name (also referred to as33* a "target name") alone. There are no actions associated34* with them.35* <p>36* The following permission target name is defined:37* <p>38* <dl>39* <dt>publishEndpoint40* </dl>41* <p>42* The <code>publishEndpoint</code> permission allows publishing a43* web service endpoint using the <code>publish</code> methods44* defined by the <code>javax.xml.ws.Endpoint</code> class.45* <p>46* Granting <code>publishEndpoint</code> allows the application to be47* exposed as a network service. Depending on the security of the runtime and48* the security of the application, this may introduce a security hole that49* is remotely exploitable.50*51* @see javax.xml.ws.Endpoint52* @see java.security.BasicPermission53* @see java.security.Permission54* @see java.security.Permissions55* @see java.lang.SecurityManager56* @see java.net.SocketPermission57*/58public final class WebServicePermission extends BasicPermission {5960private static final long serialVersionUID = -146474640053770988L;6162/**63* Creates a new permission with the specified name.64*65* @param name the name of the <code>WebServicePermission</code>66*/67public WebServicePermission(String name) {68super(name);69}7071/**72* Creates a new permission with the specified name and actions.73*74* The <code>actions</code> parameter is currently unused and75* it should be <code>null</code>.76*77* @param name the name of the <code>WebServicePermission</code>78* @param actions should be <code>null</code>79*/80public WebServicePermission(String name, String actions) {81super(name, actions);82}8384}858687