| java.lang.Object java.security.Permission javax.management.MBeanPermission
MBeanPermission | public class MBeanPermission extends Permission (Code) | | Permission that control access to MBeanServer methods.
The MBeanPermission contains a target name and a comma separated list of target actions.
The target name is composed by:
- the class name of the MBean, as returned by
javax.management.MBeanInfo.getClassName MBeanInfo.getClassName()
- the pound character '#'
- the attribute name or the operation name
- the object name of the MBean inclosed in squared brackets
When used in the target name, the wildcard '*' may be used to specify packages, classes or methods as a whole.
When used in the actions, the wildcard '*' indicates all actions.
An example of policy file is the following:
grant codebase my-jmx-application.jar
{
permission javax.management.MBeanPermission "mx4j.tools.naming.NamingService", "instantiate, registerMBean, unregisterMBean";
permission javax.management.MBeanPermission "mx4j.tools.naming.NamingService#start", "invoke";
permission javax.management.MBeanPermission "mx4j.tools.naming.NamingService#stop", "invoke";
}
version: $Revision: 1.11 $ |
MBeanPermission | public MBeanPermission(String name, String actions)(Code) | | Creates a new MBeanPermission
Parameters: name - The target name Parameters: actions - The comma separated list of actions |
MBeanPermission | public MBeanPermission(String className, String memberName, ObjectName objectName, String actions)(Code) | | Creates a new MBeanPermission. If the parts composing the target name are all specified as null,
the wildcard target name '*' is assumed.
Parameters: className - The className part of the target name, may be null Parameters: memberName - The memberName part of the target name, may be null Parameters: objectName - The ObjectName part of the target name, may be null Parameters: actions - The comma separated list of actions |
hashCode | public int hashCode()(Code) | | |
|
|