public class RBACRestrictor extends Object implements org.jolokia.restrictor.Restrictor
JMXSecurityMBean
.Modifier and Type | Field and Description |
---|---|
protected org.jolokia.restrictor.Restrictor |
delegate |
protected RBACMBeanInvoker |
mBeanInvoker |
Constructor and Description |
---|
RBACRestrictor(org.jolokia.config.Configuration config) |
RBACRestrictor(String policyLocation) |
Modifier and Type | Method and Description |
---|---|
protected void |
initDelegate(String policyLocation) |
boolean |
isAttributeReadAllowed(ObjectName objectName,
String attribute) |
boolean |
isAttributeWriteAllowed(ObjectName objectName,
String attribute) |
boolean |
isHttpMethodAllowed(org.jolokia.util.HttpMethod method) |
boolean |
isOperationAllowed(ObjectName objectName,
String operation) |
boolean |
isOriginAllowed(String origin,
boolean strictCheck) |
boolean |
isRemoteAccessAllowed(String... hostOrAddress) |
boolean |
isTypeAllowed(org.jolokia.util.RequestType type) |
protected org.jolokia.restrictor.Restrictor delegate
protected RBACMBeanInvoker mBeanInvoker
public RBACRestrictor(org.jolokia.config.Configuration config)
public RBACRestrictor(String policyLocation)
protected void initDelegate(String policyLocation)
public boolean isOperationAllowed(ObjectName objectName, String operation)
isOperationAllowed
in interface org.jolokia.restrictor.Restrictor
public boolean isAttributeReadAllowed(ObjectName objectName, String attribute)
isAttributeReadAllowed
in interface org.jolokia.restrictor.Restrictor
public boolean isAttributeWriteAllowed(ObjectName objectName, String attribute)
isAttributeWriteAllowed
in interface org.jolokia.restrictor.Restrictor
public boolean isHttpMethodAllowed(org.jolokia.util.HttpMethod method)
isHttpMethodAllowed
in interface org.jolokia.restrictor.Restrictor
public boolean isTypeAllowed(org.jolokia.util.RequestType type)
isTypeAllowed
in interface org.jolokia.restrictor.Restrictor
public boolean isRemoteAccessAllowed(String... hostOrAddress)
isRemoteAccessAllowed
in interface org.jolokia.restrictor.Restrictor
public boolean isOriginAllowed(String origin, boolean strictCheck)
isOriginAllowed
in interface org.jolokia.restrictor.Restrictor
Copyright © 2019 JBoss by Red Hat. All rights reserved.