Class RBACRestrictor

  • All Implemented Interfaces:
    org.jolokia.restrictor.Restrictor

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

      • delegate

        protected org.jolokia.restrictor.Restrictor delegate
    • Constructor Detail

      • RBACRestrictor

        public RBACRestrictor​(org.jolokia.config.Configuration config)
    • Method Detail

      • initDelegate

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

        public boolean isOperationAllowed​(ObjectName objectName,
                                          String operation)
        Specified by:
        isOperationAllowed in interface org.jolokia.restrictor.Restrictor
      • isAttributeReadAllowed

        public boolean isAttributeReadAllowed​(ObjectName objectName,
                                              String attribute)
        Specified by:
        isAttributeReadAllowed in interface org.jolokia.restrictor.Restrictor
      • isAttributeWriteAllowed

        public boolean isAttributeWriteAllowed​(ObjectName objectName,
                                               String attribute)
        Specified by:
        isAttributeWriteAllowed in interface org.jolokia.restrictor.Restrictor
      • isHttpMethodAllowed

        public boolean isHttpMethodAllowed​(org.jolokia.util.HttpMethod method)
        Specified by:
        isHttpMethodAllowed in interface org.jolokia.restrictor.Restrictor
      • isTypeAllowed

        public boolean isTypeAllowed​(org.jolokia.util.RequestType type)
        Specified by:
        isTypeAllowed in interface org.jolokia.restrictor.Restrictor
      • isRemoteAccessAllowed

        public boolean isRemoteAccessAllowed​(String... hostOrAddress)
        Specified by:
        isRemoteAccessAllowed in interface org.jolokia.restrictor.Restrictor
      • isOriginAllowed

        public boolean isOriginAllowed​(String origin,
                                       boolean strictCheck)
        Specified by:
        isOriginAllowed in interface org.jolokia.restrictor.Restrictor