Package javax.xml.ws
Class WebServicePermission
- java.lang.Object
-
- java.security.Permission
-
- java.security.BasicPermission
-
- javax.xml.ws.WebServicePermission
-
public final class WebServicePermission extends 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 thepublish
methods defined by thejavax.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.- See Also:
Endpoint
,BasicPermission
,Permission
,Permissions
,SecurityManager
,SocketPermission
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebServicePermission(java.lang.String name)
Creates a new permission with the specified name.WebServicePermission(java.lang.String name, java.lang.String actions)
Creates a new permission with the specified name and actions.
-
-
-
Constructor Detail
-
WebServicePermission
public WebServicePermission(java.lang.String name)
Creates a new permission with the specified name.- Parameters:
name
- the name of theWebServicePermission
-
WebServicePermission
public WebServicePermission(java.lang.String name, java.lang.String actions)
Creates a new permission with the specified name and actions. Theactions
parameter is currently unused and it should benull
.- Parameters:
name
- the name of theWebServicePermission
actions
- should benull
-
-