KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > ws > WebServicePermission


1 /*
2  * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.ws;
7
8 import java.security.BasicPermission JavaDoc;
9
10 /**
11  * This class defines web service permissions.
12  * <p>
13  * Web service Permissions are identified by name (also referred to as
14  * a "target name") alone. There are no actions associated
15  * with them.
16  * <p>
17  * The following permission target name is defined:
18  * <p>
19  * <dl>
20  * <dt>publishEndpoint
21  * </dl>
22  * <p>
23  * The <code>publishEndpoint</code> permission allows publishing a
24  * web service endpoint using the <code>publish</code> methods
25  * defined by the <code>javax.xml.ws.Endpoint</code> class.
26  *
27  * @see javax.xml.ws.Endpoint
28  * @see java.security.BasicPermission
29  * @see java.security.Permission
30  * @see java.security.Permissions
31  * @see java.lang.SecurityManager
32  */

33 public final class WebServicePermission extends BasicPermission JavaDoc {
34
35     private static final long serialVersionUID = -146474640053770988L;
36
37     /**
38      * Creates a new permission with the specified name.
39      *
40      * @param name the name of the <code>WebServicePermission</code>
41      */

42     public WebServicePermission(String JavaDoc name) {
43         super(name);
44     }
45
46     /**
47      * Creates a new permission with the specified name and actions.
48      *
49      * The <code>actions</code> parameter is currently unused and
50      * it should be <code>null</code>.
51      *
52      * @param name the name of the <code>WebServicePermission</code>
53      * @param actions should be <code>null</code>
54      */

55     public WebServicePermission(String JavaDoc name, String JavaDoc actions) {
56         super(name, actions);
57     }
58
59 }
60
Popular Tags