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

public abstract class AbstractChecker<T> extends Object
Base class for all checkers
Since:
03.09.11
Author:
roland
  • Constructor Details

    • AbstractChecker

      public AbstractChecker()
  • Method Details

    • assertNodeName

      protected void assertNodeName(Node pNode, String... pExpected)
      Verify that a given node has one of a set of expected node names
      Parameters:
      pNode - node to check
      pExpected - list of expected node names
      Throws:
      SecurityException - if the node has none of the expected names
    • check

      public abstract boolean check(T pArg)
      Check whether for the given argument access is allowed
      Parameters:
      pArg - argument (specific to each subclass)
      Returns:
      true if access is allowed, false otherwise