public class MBeanAccessChecker extends AbstractChecker<MBeanAccessChecker.Arg>
<allow> or <deny> seciton.
MBean names can be specified either a full names or as patterns in which case the rule
applies to all MBeans matching this pattern. For attribute and operations names, the wildcard
* is allowed, too.
Example:
<allow>
<mbean>
<name>java.lang:type=Memory</name>
<operation>gc</operation>
</mbean>
</allow>
<deny>
<mbean>
<name>com.mchange.v2.c3p0:type=PooledDataSource,*</name>
<attribute>properties</attribute>
</mbean>
</deny>
| Modifier and Type | Class and Description |
|---|---|
static class |
MBeanAccessChecker.Arg
Class encapsulation the arguments for the check command
|
| Constructor and Description |
|---|
MBeanAccessChecker(Document pDoc)
Constructor which extracts the information relevant for this checker from the given document.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(MBeanAccessChecker.Arg pArg)
Check whether for the given argument access is allowed
|
assertNodeNamepublic MBeanAccessChecker(Document pDoc) throws MalformedObjectNameException
pDoc - document to examineMalformedObjectNameException - if the configuration contains malformed object names.public boolean check(MBeanAccessChecker.Arg pArg)
check in class AbstractChecker<MBeanAccessChecker.Arg>pArg - argument (specific to each subclass)Copyright © 2017. All rights reserved.