Tue, 07 Nov 2017 18:54:04 -0800
Added tag jdk8u162-b06 for changeset 6095742f8034
1 /*
2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 package javax.xml.ws;
28 import java.security.BasicPermission;
30 /**
31 * This class defines web service permissions.
32 * <p>
33 * Web service Permissions are identified by name (also referred to as
34 * a "target name") alone. There are no actions associated
35 * with them.
36 * <p>
37 * The following permission target name is defined:
38 * <p>
39 * <dl>
40 * <dt>publishEndpoint
41 * </dl>
42 * <p>
43 * The <code>publishEndpoint</code> permission allows publishing a
44 * web service endpoint using the <code>publish</code> methods
45 * defined by the <code>javax.xml.ws.Endpoint</code> class.
46 * <p>
47 * Granting <code>publishEndpoint</code> allows the application to be
48 * exposed as a network service. Depending on the security of the runtime and
49 * the security of the application, this may introduce a security hole that
50 * is remotely exploitable.
51 *
52 * @see javax.xml.ws.Endpoint
53 * @see java.security.BasicPermission
54 * @see java.security.Permission
55 * @see java.security.Permissions
56 * @see java.lang.SecurityManager
57 * @see java.net.SocketPermission
58 */
59 public final class WebServicePermission extends BasicPermission {
61 private static final long serialVersionUID = -146474640053770988L;
63 /**
64 * Creates a new permission with the specified name.
65 *
66 * @param name the name of the <code>WebServicePermission</code>
67 */
68 public WebServicePermission(String name) {
69 super(name);
70 }
72 /**
73 * Creates a new permission with the specified name and actions.
74 *
75 * The <code>actions</code> parameter is currently unused and
76 * it should be <code>null</code>.
77 *
78 * @param name the name of the <code>WebServicePermission</code>
79 * @param actions should be <code>null</code>
80 */
81 public WebServicePermission(String name, String actions) {
82 super(name, actions);
83 }
85 }