Package io.hawt.system
Class RBACMBeanInvoker
- java.lang.Object
-
- io.hawt.system.RBACMBeanInvoker
-
public class RBACMBeanInvoker extends java.lang.ObjectCached MBean server invoker forRBACRestrictor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classRBACMBeanInvoker.CanInvokeKey
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.cache.LoadingCache<RBACMBeanInvoker.CanInvokeKey,java.lang.Boolean>canInvokeCacheprotected com.google.common.cache.LoadingCache<javax.management.ObjectName,java.util.Map<java.lang.String,javax.management.MBeanAttributeInfo>>mbeanInfoCacheprotected javax.management.MBeanServermBeanServerprotected javax.management.ObjectNamesecurityMBean
-
Constructor Summary
Constructors Constructor Description RBACMBeanInvoker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanInvoke(javax.management.ObjectName objectName, java.lang.String operation)protected booleandoCanInvoke(javax.management.ObjectName objectName, java.lang.String operation)protected voidinitCaches()protected voidinitSecurityMBean()booleanisReadAllowed(javax.management.ObjectName objectName, java.lang.String attribute)booleanisWriteAllowed(javax.management.ObjectName objectName, java.lang.String attribute)protected java.util.Map<java.lang.String,javax.management.MBeanAttributeInfo>loadMBeanAttributes(javax.management.ObjectName objectName)
-
-
-
Field Detail
-
mBeanServer
protected javax.management.MBeanServer mBeanServer
-
securityMBean
protected javax.management.ObjectName securityMBean
-
canInvokeCache
protected com.google.common.cache.LoadingCache<RBACMBeanInvoker.CanInvokeKey,java.lang.Boolean> canInvokeCache
-
mbeanInfoCache
protected com.google.common.cache.LoadingCache<javax.management.ObjectName,java.util.Map<java.lang.String,javax.management.MBeanAttributeInfo>> mbeanInfoCache
-
-
Method Detail
-
initSecurityMBean
protected void initSecurityMBean()
-
initCaches
protected void initCaches()
-
doCanInvoke
protected boolean doCanInvoke(javax.management.ObjectName objectName, java.lang.String operation) throws java.lang.Exception- Throws:
java.lang.Exception
-
loadMBeanAttributes
protected java.util.Map<java.lang.String,javax.management.MBeanAttributeInfo> loadMBeanAttributes(javax.management.ObjectName objectName) throws java.lang.Exception- Throws:
java.lang.Exception
-
canInvoke
public boolean canInvoke(javax.management.ObjectName objectName, java.lang.String operation)
-
isReadAllowed
public boolean isReadAllowed(javax.management.ObjectName objectName, java.lang.String attribute)
-
isWriteAllowed
public boolean isWriteAllowed(javax.management.ObjectName objectName, java.lang.String attribute)
-
-