Class RBACRestrictor

java.lang.Object
io.hawt.system.RBACRestrictor
All Implemented Interfaces:
org.jolokia.server.core.service.api.Restrictor

public class RBACRestrictor extends Object implements org.jolokia.server.core.service.api.Restrictor
Jolokia restrictor that protects MBean server invocation inside Jolokia based on RBAC provided by JMXSecurityMBean.
  • Field Details

    • delegate

      protected org.jolokia.server.core.service.api.Restrictor delegate
    • mBeanInvoker

      protected RBACMBeanInvoker mBeanInvoker
  • Constructor Details

    • RBACRestrictor

      public RBACRestrictor(org.jolokia.server.core.config.Configuration config)
  • Method Details

    • initDelegate

      protected void initDelegate(org.jolokia.server.core.config.Configuration config)
    • isOperationAllowed

      public boolean isOperationAllowed(ObjectName objectName, String operation)
      Specified by:
      isOperationAllowed in interface org.jolokia.server.core.service.api.Restrictor
    • isAttributeReadAllowed

      public boolean isAttributeReadAllowed(ObjectName objectName, String attribute)
      Specified by:
      isAttributeReadAllowed in interface org.jolokia.server.core.service.api.Restrictor
    • isAttributeWriteAllowed

      public boolean isAttributeWriteAllowed(ObjectName objectName, String attribute)
      Specified by:
      isAttributeWriteAllowed in interface org.jolokia.server.core.service.api.Restrictor
    • isHttpMethodAllowed

      public boolean isHttpMethodAllowed(org.jolokia.server.core.util.HttpMethod method)
      Specified by:
      isHttpMethodAllowed in interface org.jolokia.server.core.service.api.Restrictor
    • isTypeAllowed

      public boolean isTypeAllowed(org.jolokia.server.core.util.RequestType type)
      Specified by:
      isTypeAllowed in interface org.jolokia.server.core.service.api.Restrictor
    • isRemoteAccessAllowed

      public boolean isRemoteAccessAllowed(String... hostOrAddress)
      Specified by:
      isRemoteAccessAllowed in interface org.jolokia.server.core.service.api.Restrictor
    • isOriginAllowed

      public boolean isOriginAllowed(String origin, boolean strictCheck)
      Specified by:
      isOriginAllowed in interface org.jolokia.server.core.service.api.Restrictor
    • isObjectNameHidden

      public boolean isObjectNameHidden(ObjectName name)
      Specified by:
      isObjectNameHidden in interface org.jolokia.server.core.service.api.Restrictor