All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jakarta.xml.ws.WebServicePermission Maven / Gradle / Ivy

/*
 * Copyright (c) 2005, 2020 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0, which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package jakarta.xml.ws;

import java.security.BasicPermission;

/**
 * This class defines web service permissions.
 * 

* Web service Permissions are identified by name (also referred to as * a "target name") alone. There are no actions associated * with them. *

* The following permission target name is defined: *

*
publishEndpoint *
* The {@code publishEndpoint} permission allows publishing a * web service endpoint using the {@code publish} methods * defined by the {@code jakarta.xml.ws.Endpoint} class. *

* Granting {@code publishEndpoint} allows the application to be * exposed as a network service. Depending on the security of the runtime and * the security of the application, this may introduce a security hole that * is remotely exploitable. * * @see jakarta.xml.ws.Endpoint * @see java.security.BasicPermission * @see java.security.Permission * @see java.security.Permissions * @see java.lang.SecurityManager * @see java.net.SocketPermission * @since 1.6 */ public final class WebServicePermission extends BasicPermission { private static final long serialVersionUID = -146474640053770988L; /** * Creates a new permission with the specified name. * * @param name the name of the {@code WebServicePermission} */ public WebServicePermission(String name) { super(name); } /** * Creates a new permission with the specified name and actions. * * The {@code actions} parameter is currently unused and * it should be {@code null}. * * @param name the name of the {@code WebServicePermission} * @param actions should be {@code null} */ public WebServicePermission(String name, String actions) { super(name, actions); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy