This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management
class MBeanServerPermission

java.lang.Object extended by java.security.Permission extended by java.security.BasicPermission extended by javax.management.MBeanServerPermission
All Implemented Interfaces:
Serializable, Guard

public class MBeanServerPermission
extends BasicPermission

A Permission to perform actions related to MBeanServers. The name of the permission specifies the operation requested or granted by the permission. For a granted permission, it can be * to allow all of the MBeanServer operations specified below. Otherwise, for a granted or requested permission, it must be one of the following:

createMBeanServer
Create a new MBeanServer object using the method {@link MBeanServerFactory#createMBeanServer()} or {@link MBeanServerFactory#createMBeanServer(java.lang.String)}.
findMBeanServer
Find an MBeanServer with a given name, or all MBeanServers in this JVM, using the method {@link MBeanServerFactory#findMBeanServer}.
newMBeanServer
Create a new MBeanServer object without keeping a reference to it, using the method {@link MBeanServerFactory#newMBeanServer()} or {@link MBeanServerFactory#newMBeanServer(java.lang.String)}.
releaseMBeanServer
Remove the MBeanServerFactory's reference to an MBeanServer, using the method {@link MBeanServerFactory#releaseMBeanServer}.
The name of the permission can also denote a list of one or more comma-separated operations. Spaces are allowed at the beginning and end of the name and before and after commas.

MBeanServerPermission("createMBeanServer") implies MBeanServerPermission("newMBeanServer").


Constructor Summary

          Create a new MBeanServerPermission with the given name.

          Create a new MBeanServerPermission with the given name.
 
Method Summary
 boolean

          Checks two MBeanServerPermission objects for equality.
 int

          Returns the hash code value for this object.
 boolean

          Checks if this MBeanServerPermission object "implies" the specified permission.
 PermissionCollection

          Returns a new PermissionCollection object for storing BasicPermission objects.
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
checkGuard, equals, getActions, getName, hashCode, implies, newPermissionCollection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanServerPermission

public MBeanServerPermission(String name)

Create a new MBeanServerPermission with the given name.

This constructor is equivalent to MBeanServerPermission(name,null).

Parameters:
name - the name of the granted permission. It must respect the constraints spelt out in the description of the {@link MBeanServerPermission} class.

MBeanServerPermission

public MBeanServerPermission(String name,
                             String actions)

Create a new MBeanServerPermission with the given name.

Parameters:
name - the name of the granted permission. It must respect the constraints spelt out in the description of the {@link MBeanServerPermission} class.
actions - the associated actions. This parameter is not currently used and must be null or the empty string.
Method Detail

equals

public boolean equals(Object obj)
Checks two MBeanServerPermission objects for equality. Checks that obj is an MBeanServerPermission, and represents the same list of allowable actions as this object.

Overrides:
equals in class BasicPermission
Parameters:
obj - the object we are testing for equality with this object.
Returns:
true if the objects are equal.

hashCode

public int hashCode()
Overrides:
hashCode in class BasicPermission

implies

public boolean implies(Permission p)

Checks if this MBeanServerPermission object "implies" the specified permission.

More specifically, this method returns true if:

The createMBeanServer permission implies the newMBeanServer permission.

Overrides:
implies in class BasicPermission
Parameters:
p - the permission to check against.
Returns:
true if the specified permission is implied by this object, false if not.

newPermissionCollection

public PermissionCollection newPermissionCollection()
Overrides:
newPermissionCollection in class BasicPermission


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.