Class AbstractChecker<T>
java.lang.Object
org.jolokia.server.core.restrictor.policy.AbstractChecker<T>
- Type Parameters:
T- type used for checking the access
- Direct Known Subclasses:
CorsChecker,HttpMethodChecker,MBeanAccessChecker,NetworkChecker,RequestTypeChecker
Base class for all checkers
- Since:
- 03.09.11
- Author:
- roland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertNodeName(Node pNode, String... pExpected) Verify that a given node has one of a set of expected node namesabstract booleanCheck whether for the given argument access is allowed
-
Constructor Details
-
AbstractChecker
public AbstractChecker()
-
-
Method Details
-
assertNodeName
Verify that a given node has one of a set of expected node names- Parameters:
pNode- node to checkpExpected- list of expected node names- Throws:
SecurityException- if the node has none of the expected names
-
check
Check whether for the given argument access is allowed- Parameters:
pArg- argument (specific to each subclass)- Returns:
- true if access is allowed, false otherwise
-