📄 mbeanpermission.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanPermission.html#getActions()">getActions</A></B>()</CODE><BR> Returns the "canonical string representation" of the actions. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanPermission.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns the hash code value for this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanPermission.html#implies(java.security.Permission)">implies</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html" title="class or interface in java.security">Permission</A> p)</CODE><BR> Checks if this MBeanPermission object "implies" the specified permission.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.security.Permission"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.security.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html" title="class or interface in java.security">Permission</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html#checkGuard(java.lang.Object)" title="class or interface in java.security">checkGuard</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html#getName()" title="class or interface in java.security">getName</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html#newPermissionCollection()" title="class or interface in java.security">newPermissionCollection</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html#toString()" title="class or interface in java.security">toString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="MBeanPermission(java.lang.String, java.lang.String)"><!-- --></A><H3>MBeanPermission</H3><PRE>public <B>MBeanPermission</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> 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> actions)</PRE><DL><DD><p>Create a new MBeanPermission object with the specified target name and actions.</p> <p>The target name is of the form "<code>className#member[objectName]</code>" where each part is optional. It must not be empty or null.</p> <p>The actions parameter contains a comma-separated list of the desired actions granted on the target name. It must not be empty or null.</p><P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the triplet "className#member[objectName]".<DD><CODE>actions</CODE> - the action string.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the <code>name</code> or <code>actions</code> is invalid.</DL><HR><A NAME="MBeanPermission(java.lang.String, java.lang.String, javax.management.ObjectName, java.lang.String)"><!-- --></A><H3>MBeanPermission</H3><PRE>public <B>MBeanPermission</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> 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> member, <A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A> 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> actions)</PRE><DL><DD><p>Create a new MBeanPermission object with the specified target name (class name, member, object name) and actions.</p> <p>The class name, member and object name parameters define a target name of the form "<code>className#member[objectName]</code>" where each part is optional. This will be the result of <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html#getName()" title="class or interface in java.security"><CODE>Permission.getName()</CODE></A> on the resultant MBeanPermission.</p> <p>The actions parameter contains a comma-separated list of the desired actions granted on the target name. It must not be empty or null.</p><P><DT><B>Parameters:</B><DD><CODE>className</CODE> - the class name to which this permission applies. May be null or <code>"-"</code>, which represents a class name that is implied by any class name but does not imply any other class name.<DD><CODE>member</CODE> - the member to which this permission applies. May be null or <code>"-"</code>, which represents a member that is implied by any member but does not imply any other member.<DD><CODE>objectName</CODE> - the object name to which this permission applies. May be null, which represents an object name that is implied by any object name but does not imply any other object name.<DD><CODE>actions</CODE> - the action string.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getActions()"><!-- --></A><H3>getActions</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getActions</B>()</PRE><DL><DD>Returns the "canonical string representation" of the actions. That is, this method always returns present actions in alphabetical order.<P><DD><DL><DT><B>Returns:</B><DD>the canonical string representation of the actions.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hash code value for this object.<P><DD><DL><DT><B>Returns:</B><DD>a hash code value for this object.</DL></DD></DL><HR><A NAME="implies(java.security.Permission)"><!-- --></A><H3>implies</H3><PRE>public boolean <B>implies</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/security/Permission.html" title="class or interface in java.security">Permission</A> p)</PRE><DL><DD><p>Checks if this MBeanPermission object "implies" the specified permission.</p> <p>More specifically, this method returns true if:</p> <ul> <li> <i>p</i> is an instance of MBeanPermission; and</li> <li> <i>p</i> has a null className or <i>p</i>'s className matches this object's className; and</li> <li> <i>p</i> has a null member or <i>p</i>'s member matches this object's member; and</li> <li> <i>p</i> has a null object name name or or <i>p</i>'s object name matches this object's object name; and</li> <li> <i>p</i>'s actions are a subset of this object's actions</li> </ul> <p>If this object's className is "<code>*</code>", <i>p</i>'s className always matches it. If it is "<code>a.*</code>", <i>p</i>'s className matches it if it begins with "<code>a.</code>".</p> <p>If this object's member is "<code>*</code>", <i>p</i>'s member always matches it.</p> <p>If this object's objectName <i>n1</i> is an object name pattern, <i>p</i>'s objectName <i>n2</i> matches it if <A HREF="../../javax/management/ObjectName.html#equals(java.lang.Object)"><CODE><i>n1</i>.equals(<i>n2</i>)</CODE></A> or if <A HREF="../../javax/management/ObjectName.html#apply(javax.management.ObjectName)"><CODE><i>n1</i>.apply(<i>n2</i>)</CODE></A>.</p> <p>A permission that includes the <code>queryMBeans</code> action is considered to include <code>queryNames</code> as well.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the permission to check against.<DT><B>Returns:</B><DD>true if the specified permission is implied by this object, false if not.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</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> obj)</PRE><DL><DD>Checks two MBeanPermission objects for equality. Checks that <i>obj</i> is an MBeanPermission, and has the same name and actions as this object. <P><P><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object we are testing for equality with this object.<DT><B>Returns:</B><DD>true if obj is an MBeanPermission, and has the same name and actions as this MBeanPermission object.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> <A HREF="../../javax/management/MBeanParameterInfo.html" title="class in javax.management"><B>PREV CLASS</B></A> <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> <A HREF="MBeanPermission.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -