Class RBACRestrictor

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

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

      Constructors 
      Constructor Description
      RBACRestrictor​(org.jolokia.config.Configuration config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void initDelegate​(org.jolokia.config.Configuration config)  
      boolean isAttributeReadAllowed​(javax.management.ObjectName objectName, java.lang.String attribute)  
      boolean isAttributeWriteAllowed​(javax.management.ObjectName objectName, java.lang.String attribute)  
      boolean isHttpMethodAllowed​(org.jolokia.util.HttpMethod method)  
      boolean isOperationAllowed​(javax.management.ObjectName objectName, java.lang.String operation)  
      boolean isOriginAllowed​(java.lang.String origin, boolean strictCheck)  
      boolean isRemoteAccessAllowed​(java.lang.String... hostOrAddress)  
      boolean isTypeAllowed​(org.jolokia.util.RequestType type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(javax.management.ObjectName objectName,
                                          java.lang.String operation)
        Specified by:
        isOperationAllowed in interface org.jolokia.restrictor.Restrictor
      • isAttributeReadAllowed

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

        public boolean isAttributeWriteAllowed​(javax.management.ObjectName objectName,
                                               java.lang.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​(java.lang.String... hostOrAddress)
        Specified by:
        isRemoteAccessAllowed in interface org.jolokia.restrictor.Restrictor
      • isOriginAllowed

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