< prev index next >

src/java.xml.ws/share/classes/javax/xml/ws/WebServicePermission.java

Print this page




  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  */
  25 
  26 package javax.xml.ws;
  27 
  28 import java.security.BasicPermission;
  29 
  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  * @since 1.6
  59  */
  60 public final class WebServicePermission extends BasicPermission {
  61 
  62     private static final long serialVersionUID = -146474640053770988L;
  63 
  64     /**
  65      * Creates a new permission with the specified name.
  66      *
  67      * @param name the name of the <code>WebServicePermission</code>
  68      */
  69     public WebServicePermission(String name) {
  70         super(name);
  71     }
  72 
  73     /**
  74      * Creates a new permission with the specified name and actions.
  75      *
  76      * The <code>actions</code> parameter is currently unused and
  77      * it should be <code>null</code>.
  78      *
  79      * @param name the name of the <code>WebServicePermission</code>
  80      * @param actions should be <code>null</code>
  81      */
  82     public WebServicePermission(String name, String actions) {
  83         super(name, actions);
  84     }
  85 
  86 }


  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  */
  25 
  26 package javax.xml.ws;
  27 
  28 import java.security.BasicPermission;
  29 
  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  * <dl>
  39  *   <dt>publishEndpoint
  40  * </dl>
  41  * The {@code publishEndpoint} permission allows publishing a
  42  * web service endpoint using the {@code publish} methods
  43  * defined by the {@code javax.xml.ws.Endpoint} class.
  44  * <p>
  45  * Granting {@code publishEndpoint} allows the application to be




  46  * exposed as a network service. Depending on the security of the runtime and
  47  * the security of the application, this may introduce a security hole that
  48  * is remotely exploitable.
  49  *
  50  * @see javax.xml.ws.Endpoint
  51  * @see java.security.BasicPermission
  52  * @see java.security.Permission
  53  * @see java.security.Permissions
  54  * @see java.lang.SecurityManager
  55  * @see java.net.SocketPermission
  56  * @since 1.6
  57  */
  58 public final class WebServicePermission extends BasicPermission {
  59 
  60     private static final long serialVersionUID = -146474640053770988L;
  61 
  62     /**
  63      * Creates a new permission with the specified name.
  64      *
  65      * @param name the name of the {@code WebServicePermission}
  66      */
  67     public WebServicePermission(String name) {
  68         super(name);
  69     }
  70 
  71     /**
  72      * Creates a new permission with the specified name and actions.
  73      *
  74      * The {@code actions} parameter is currently unused and
  75      * it should be {@code null}.
  76      *
  77      * @param name the name of the {@code WebServicePermission}
  78      * @param actions should be {@code null}
  79      */
  80     public WebServicePermission(String name, String actions) {
  81         super(name, actions);
  82     }
  83 
  84 }
< prev index next >