public class RBACMBeanInvoker extends Object
RBACRestrictor
.Modifier and Type | Class and Description |
---|---|
protected class |
RBACMBeanInvoker.CanInvokeKey |
Modifier and Type | Field and Description |
---|---|
protected com.google.common.cache.LoadingCache<RBACMBeanInvoker.CanInvokeKey,Boolean> |
canInvokeCache |
protected com.google.common.cache.LoadingCache<ObjectName,Map<String,MBeanAttributeInfo>> |
mbeanInfoCache |
protected MBeanServer |
mBeanServer |
protected ObjectName |
securityMBean |
Constructor and Description |
---|
RBACMBeanInvoker() |
Modifier and Type | Method and Description |
---|---|
boolean |
canInvoke(ObjectName objectName,
String operation) |
protected boolean |
doCanInvoke(ObjectName objectName,
String operation) |
protected void |
initCaches() |
protected void |
initSecurityMBean() |
boolean |
isReadAllowed(ObjectName objectName,
String attribute) |
boolean |
isWriteAllowed(ObjectName objectName,
String attribute) |
protected Map<String,MBeanAttributeInfo> |
loadMBeanAttributes(ObjectName objectName) |
protected MBeanServer mBeanServer
protected ObjectName securityMBean
protected com.google.common.cache.LoadingCache<RBACMBeanInvoker.CanInvokeKey,Boolean> canInvokeCache
protected com.google.common.cache.LoadingCache<ObjectName,Map<String,MBeanAttributeInfo>> mbeanInfoCache
protected void initSecurityMBean()
protected void initCaches()
protected boolean doCanInvoke(ObjectName objectName, String operation) throws Exception
Exception
protected Map<String,MBeanAttributeInfo> loadMBeanAttributes(ObjectName objectName) throws Exception
Exception
public boolean canInvoke(ObjectName objectName, String operation)
public boolean isReadAllowed(ObjectName objectName, String attribute)
public boolean isWriteAllowed(ObjectName objectName, String attribute)
Copyright © 2019 JBoss by Red Hat. All rights reserved.