Package io.hawt.system
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.jolokia.server.core.service.api.Restrictorprotected RBACMBeanInvoker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitDelegate(org.jolokia.server.core.config.Configuration config) booleanisAttributeReadAllowed(ObjectName objectName, String attribute) booleanisAttributeWriteAllowed(ObjectName objectName, String attribute) booleanisHttpMethodAllowed(org.jolokia.server.core.util.HttpMethod method) booleanisOperationAllowed(ObjectName objectName, String operation) booleanisOriginAllowed(String origin, boolean strictCheck) booleanisRemoteAccessAllowed(String... hostOrAddress) booleanisTypeAllowed(org.jolokia.server.core.util.RequestType type)
-
Field Details
-
delegate
protected org.jolokia.server.core.service.api.Restrictor delegate -
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
- Specified by:
isOperationAllowedin interfaceorg.jolokia.server.core.service.api.Restrictor
-
isAttributeReadAllowed
- Specified by:
isAttributeReadAllowedin interfaceorg.jolokia.server.core.service.api.Restrictor
-
isAttributeWriteAllowed
- Specified by:
isAttributeWriteAllowedin interfaceorg.jolokia.server.core.service.api.Restrictor
-
isHttpMethodAllowed
public boolean isHttpMethodAllowed(org.jolokia.server.core.util.HttpMethod method) - Specified by:
isHttpMethodAllowedin interfaceorg.jolokia.server.core.service.api.Restrictor
-
isTypeAllowed
public boolean isTypeAllowed(org.jolokia.server.core.util.RequestType type) - Specified by:
isTypeAllowedin interfaceorg.jolokia.server.core.service.api.Restrictor
-
isRemoteAccessAllowed
- Specified by:
isRemoteAccessAllowedin interfaceorg.jolokia.server.core.service.api.Restrictor
-
isOriginAllowed
- Specified by:
isOriginAllowedin interfaceorg.jolokia.server.core.service.api.Restrictor
-