Top Description Fields Constructors Methods
javax.xml.ws

public final Class WebServicePermission

extends BasicPermission
Class Inheritance
Imports
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 publishEndpoint permission allows publishing a web service endpoint using the publish methods defined by the javax.xml.ws.Endpoint class.

Granting 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.

Since
1.6
See Also
javax.xml.ws.Endpoint, java.security.BasicPermission, java.security.Permission, java.security.Permissions, java.lang.SecurityManager, java.net.SocketPermission

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
WebServicePermission(String
the name of the WebServicePermission
name
)

Creates a new permission with the specified name.

public
WebServicePermission(String
the name of the WebServicePermission
name
,
String
should be null
actions
)

Creates a new permission with the specified name and actions.

Method Summary

Inherited from java.security.BasicPermission:
equalsgetActionshashCodeimpliesnewPermissionCollection

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.BasicPermission.serialVersionUID.

Constructor Detail

WebServicePermissionback to summary
public WebServicePermission(String name)

Creates a new permission with the specified name.

Parameters
name:String

the name of the WebServicePermission

WebServicePermissionback to summary
public WebServicePermission(String name, String actions)

Creates a new permission with the specified name and actions. The actions parameter is currently unused and it should be null.

Parameters
name:String

the name of the WebServicePermission

actions:String

should be null