public class MaskRequiredModelMBean extends RequiredModelMBean
RequiredModelMBean which allows us to intercept invoking operations on the MBean.
For example if mask has been enabled on JMX, then we use this implementation
to hide sensitive information from the returned JMX attributes / operations.| Constructor and Description |
|---|
MaskRequiredModelMBean() |
MaskRequiredModelMBean(ModelMBeanInfo mbi,
boolean mask) |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(String opName,
Object[] opArgs,
String[] sig) |
boolean |
isMask() |
protected boolean |
isMaskOperation(String opName) |
protected String |
mask(String opName,
String value)
Masks the returned value from invoking the operation
|
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModelMBeanInfo, storepublic MaskRequiredModelMBean()
throws MBeanException,
RuntimeOperationsException
public MaskRequiredModelMBean(ModelMBeanInfo mbi, boolean mask) throws MBeanException, RuntimeOperationsException
public boolean isMask()
public Object invoke(String opName, Object[] opArgs, String[] sig) throws MBeanException, ReflectionException
invoke in interface DynamicMBeaninvoke in class RequiredModelMBeanMBeanExceptionReflectionExceptionprotected boolean isMaskOperation(String opName)
Apache Camel