⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mbeanpermission.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_02) on Thu Nov 13 17:20:52 PST 2003 --><TITLE>MBeanPermission (Java 2 Platform Ent. Ed. v1.4)</TITLE><META NAME="keywords" CONTENT="javax.management.MBeanPermission class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="MBeanPermission (Java 2 Platform Ent. Ed. v1.4)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/management/MBeanParameterInfo.html" title="class in javax.management"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/management/MBeanServerBuilder.html" title="class in javax.management"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="MBeanPermission.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.management</FONT><BR>Class MBeanPermission</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>  <IMG SRC="../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html" title="class or interface in java.security">java.security.Permission</A>      <IMG SRC="../../resources/inherit.gif" ALT="extended by"><B>javax.management.MBeanPermission</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Guard.html" title="class or interface in java.security">Guard</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD></DL><HR><DL><DT>public class <B>MBeanPermission</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html" title="class or interface in java.security">Permission</A></DL><P><p>Permission controlling access to MBeanServer operations.  If a security manager has been set using <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/System.html#setSecurityManager(java.lang.SecurityManager)" title="class or interface in java.lang"><CODE>System.setSecurityManager(java.lang.SecurityManager)</CODE></A>, most operations on the MBean Server require that the caller's permissions imply an MBeanPermission appropriate for the operation.  This is described in detail in the documentation for the <A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management"><CODE>MBeanServer</CODE></A> interface.</p> <p>As with other <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html" title="class or interface in java.security"><CODE>Permission</CODE></A> objects, an MBeanPermission can represent either a permission that you <em>have</em> or a permission that you <em>need</em>.  When a sensitive operation is being checked for permission, an MBeanPermission is constructed representing the permission you need.  The operation is only allowed if the permissions you have <A HREF="../../javax/management/MBeanPermission.html#implies(java.security.Permission)"><CODE>imply</CODE></A> the permission you need.</p> <p>An MBeanPermission contains four items of information:</p> <ul> <li><p>The <em>action</em>.  For a permission you need, this is one of the actions in the list <a href="#action-list">below</a>.  For a permission you have, this is a comma-separated list of those actions, or <code>*</code>, representing all actions.</p> <p>The action is returned by <A HREF="../../javax/management/MBeanPermission.html#getActions()"><CODE>getActions()</CODE></A>.</p> <li><p>The <em>class name</em>.</p> <p>For a permission you need, this is the class name of an MBean you are accessing, as returned by <A HREF="../../javax/management/MBeanServer.html#getMBeanInfo(javax.management.ObjectName)"><CODE>MBeanServer.getMBeanInfo(name)</CODE></A>.<A HREF="../../javax/management/MBeanInfo.html#getClassName()"><CODE>getClassName()</CODE></A>.  Certain operations do not reference a class name, in which case the class name is null.</p> <p>For a permission you have, this is either empty or a <em>class name pattern</em>.  A class name pattern is a string following the Java conventions for dot-separated class names.  It may end with "<code>.*</code>" meaning that the permission grants access to any class that begins with the string preceding "<code>.*</code>".  For instance, "<code>javax.management.*</code>" grants access to <code>javax.management.MBeanServerDelegate</code> and <code>javax.management.timer.Timer</code>, among other classes.</p> <p>A class name pattern can also be empty or the single character "<code>*</code>", both of which grant access to any class.</p> <li><p>The <em>member</em>.</p> <p>For a permission you need, this is the name of the attribute or operation you are accessing.  For operations that do not reference an attribute or operation, the member is null.</p> <p>For a permission you have, this is either the name of an attribute or operation you can access, or it is empty or the single character "<code>*</code>", both of which grant access to any member.</p> <li><p>The <em>object name</em>.</p> <p>For a permission you need, this is the <A HREF="../../javax/management/ObjectName.html" title="class in javax.management"><CODE>ObjectName</CODE></A> of the MBean you are accessing.  For operations that do not reference a single MBean, it is null.  It is never an object name pattern.</p> <p>For a permission you have, this is the <A HREF="../../javax/management/ObjectName.html" title="class in javax.management"><CODE>ObjectName</CODE></A> of the MBean or MBeans you can access.  It may be an object name pattern to grant access to all MBeans whose names match the pattern.  It may also be empty, which grants access to all MBeans whatever their name.</p> </ul> <p>If you have an MBeanPermission, it allows operations only if all four of the items match.</p> <p>The class name, member, and object name can be written together as a single string, which is the <em>name</em> of this permission. The name of the permission is the string returned by <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html#getName()" title="class or interface in java.security"><CODE>getName()</CODE></A>.  The format of the string is:</p> <blockquote> <code>className#member[objectName]</code> </blockquote> <p>The object name is written using the usual syntax for <A HREF="../../javax/management/ObjectName.html" title="class in javax.management"><CODE>ObjectName</CODE></A>.  It may contain any legal characters, including <code>]</code>.  It is terminated by a <code>]</code> character that is the last character in the string.</p> <p>One or more of the <code>className</code>, <code>member</code>, or <code>objectName</code> may be omitted.  If the <code>member</code> is omitted, the <code>#</code> may be too (but does not have to be).  If the <code>objectName</code> is omitted, the <code>[]</code> may be too (but does not have to be).  It is not legal to omit all three items, that is to have a <em>name</em> that is the empty string.</p> <p>One or more of the <code>className</code>, <code>member</code>, or <code>objectName</code> may be the character "<code>-</code>", which is equivalent to a null value.  A null value is implied by any value (including another null value) but does not imply any other value.</p> <p><a name="action-list">The possible actions are these:</a></p> <ul> <li>addNotificationListener</li> <li>getAttribute</li> <li>getClassLoader</li> <li>getClassLoaderFor</li> <li>getClassLoaderRepository</li> <li>getDomains</li> <li>getMBeanInfo</li> <li>getObjectInstance</li> <li>instantiate</li> <li>invoke</li> <li>isInstanceOf</li> <li>queryMBeans</li> <li>queryNames</li> <li>registerMBean</li> <li>removeNotificationListener</li> <li>setAttribute</li> <li>unregisterMBean</li> </ul> <p>In a comma-separated list of actions, spaces are allowed before and after each action.</p><P><P><DL><DT><B>Since:</B></DT>  <DD>JMX 1.2</DD><DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#javax.management.MBeanPermission">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/management/MBeanPermission.html#MBeanPermission(java.lang.String, java.lang.String)">MBeanPermission</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;actions)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new MBeanPermission object with the specified target name and actions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/management/MBeanPermission.html#MBeanPermission(java.lang.String, java.lang.String, javax.management.ObjectName, java.lang.String)">MBeanPermission</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;className,                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;member,                <A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;objectName,                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;actions)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new MBeanPermission object with the specified target name (class name, member, object name) and actions.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanPermission.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks two MBeanPermission objects for equality. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -