Package io.hawt.system
Class RBACMBeanInvoker
java.lang.Object
io.hawt.system.RBACMBeanInvoker
Cached MBean server invoker for
RBACRestrictor.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.common.cache.LoadingCache<RBACMBeanInvoker.CanInvokeKey,Boolean> protected com.google.common.cache.LoadingCache<ObjectName,Map<String, MBeanAttributeInfo>> protected MBeanServerprotected ObjectName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInvoke(ObjectName objectName, String operation) protected booleandoCanInvoke(ObjectName objectName, String operation) protected voidprotected voidbooleanisReadAllowed(ObjectName objectName, String attribute) booleanisWriteAllowed(ObjectName objectName, String attribute) protected Map<String,MBeanAttributeInfo> loadMBeanAttributes(ObjectName objectName)
-
Field Details
-
mBeanServer
-
securityMBean
-
canInvokeCache
protected com.google.common.cache.LoadingCache<RBACMBeanInvoker.CanInvokeKey,Boolean> canInvokeCache -
mbeanInfoCache
protected com.google.common.cache.LoadingCache<ObjectName,Map<String, mbeanInfoCacheMBeanAttributeInfo>>
-
-
Constructor Details
-
RBACMBeanInvoker
public RBACMBeanInvoker()
-
-
Method Details
-
initSecurityMBean
protected void initSecurityMBean() -
initCaches
protected void initCaches() -
doCanInvoke
- Throws:
Exception
-
loadMBeanAttributes
protected Map<String,MBeanAttributeInfo> loadMBeanAttributes(ObjectName objectName) throws Exception - Throws:
Exception
-
canInvoke
-
isReadAllowed
-
isWriteAllowed
-