test_class.declarator: restrictor
test_class.modifier: private
test_class.original_string: private DelegatingRestrictor restrictor;
test_class.type: DelegatingRestrictor
test_class.var_name: restrictor
test_class.declarator: context
test_class.modifier: private
test_class.original_string: private BundleContext context;
test_class.type: BundleContext
test_class.var_name: context
test_class.file: agent/osgi/src/test/java/org/jolokia/osgi/security/DelegatingRestrictorTest.java
test_class.identifier: DelegatingRestrictorTest
test_case.body: @Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Impossible.*")
      public void invalidSyntax() throws InvalidSyntaxException {
          expect(context.getServiceReferences("org.jolokia.restrictor.Restrictor", null)).andThrow(new InvalidSyntaxException("", null));
          replay(context);
          restrictor.isHttpMethodAllowed(HttpMethod.GET);
      }
test_case.class_method_signature: DelegatingRestrictorTest.invalidSyntax()
test_case.full_signature: @Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Impossible.*") public void invalidSyntax()
test_case.identifier: invalidSyntax
test_case.invocations: andThrow expect getServiceReferences replay isHttpMethodAllowed
test_case.modifiers: @Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Impossible.*") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void invalidSyntax()
focal_class.declarator: bundleContext
focal_class.modifier: private
focal_class.original_string: private BundleContext bundleContext;
focal_class.type: BundleContext
focal_class.var_name: bundleContext
focal_class.declarator: HTTP_METHOD_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isHttpMethodAllowed((HttpMethod) args[0]);
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final RestrictorCheck HTTP_METHOD_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isHttpMethodAllowed((HttpMethod) args[0]);
          }
      };
focal_class.type: RestrictorCheck
focal_class.var_name: HTTP_METHOD_CHECK
focal_class.declarator: TYPE_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isTypeAllowed((RequestType) args[0]);
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final RestrictorCheck TYPE_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isTypeAllowed((RequestType) args[0]);
          }
      };
focal_class.type: RestrictorCheck
focal_class.var_name: TYPE_CHECK
focal_class.declarator: ATTRIBUTE_READ_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isAttributeReadAllowed((ObjectName) args[0], (String) args[1]);
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final RestrictorCheck ATTRIBUTE_READ_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isAttributeReadAllowed((ObjectName) args[0], (String) args[1]);
          }
      };
focal_class.type: RestrictorCheck
focal_class.var_name: ATTRIBUTE_READ_CHECK
focal_class.declarator: ATTRIBUTE_WRITE_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isAttributeWriteAllowed((ObjectName) args[0], (String) args[1]);
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final RestrictorCheck ATTRIBUTE_WRITE_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isAttributeWriteAllowed((ObjectName) args[0], (String) args[1]);
          }
      };
focal_class.type: RestrictorCheck
focal_class.var_name: ATTRIBUTE_WRITE_CHECK
focal_class.declarator: OPERATION_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isOperationAllowed((ObjectName) args[0], (String) args[1]);
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final RestrictorCheck OPERATION_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              return restrictor.isOperationAllowed((ObjectName) args[0], (String) args[1]);
          }
      };
focal_class.type: RestrictorCheck
focal_class.var_name: OPERATION_CHECK
focal_class.declarator: REMOTE_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              String[] argsS = new String[args.length];
              for (int i = 0; i < args.length; i++) {
                  argsS[i] = (String) args[i];
              }
              return restrictor.isRemoteAccessAllowed(argsS);
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final RestrictorCheck REMOTE_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor,Object ... args) {
              String[] argsS = new String[args.length];
              for (int i = 0; i < args.length; i++) {
                  argsS[i] = (String) args[i];
              }
              return restrictor.isRemoteAccessAllowed(argsS);
          }
      };
focal_class.type: RestrictorCheck
focal_class.var_name: REMOTE_CHECK
focal_class.declarator: CORS_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor, Object... args) {
              return restrictor.isOriginAllowed((String) args[0], (Boolean) args[1]);
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final RestrictorCheck CORS_CHECK = new RestrictorCheck() {
          /** {@inheritDoc} */
          public boolean check(Restrictor restrictor, Object... args) {
              return restrictor.isOriginAllowed((String) args[0], (Boolean) args[1]);
          }
      };
focal_class.type: RestrictorCheck
focal_class.var_name: CORS_CHECK
focal_class.file: agent/osgi/src/main/java/org/jolokia/osgi/security/DelegatingRestrictor.java
focal_class.identifier: DelegatingRestrictor
focal_class.interfaces: implements Restrictor
focal_class.class_method_signature: DelegatingRestrictor.DelegatingRestrictor(BundleContext pBundleContext)
focal_class.full_signature: public  DelegatingRestrictor(BundleContext pBundleContext)
focal_class.identifier: DelegatingRestrictor
focal_class.modifiers: public
focal_class.parameters: (BundleContext pBundleContext)
focal_class.signature:  DelegatingRestrictor(BundleContext pBundleContext)
focal_class.class_method_signature: DelegatingRestrictor.checkRestrictorService(RestrictorCheck pCheck, Object ... args)
focal_class.full_signature: private boolean checkRestrictorService(RestrictorCheck pCheck, Object ... args)
focal_class.identifier: checkRestrictorService
focal_class.modifiers: private
focal_class.parameters: (RestrictorCheck pCheck, Object ... args)
focal_class.return: boolean
focal_class.signature: boolean checkRestrictorService(RestrictorCheck pCheck, Object ... args)
focal_class.class_method_signature: DelegatingRestrictor.isHttpMethodAllowed(HttpMethod pMethod)
focal_class.full_signature: public boolean isHttpMethodAllowed(HttpMethod pMethod)
focal_class.identifier: isHttpMethodAllowed
focal_class.modifiers: public
focal_class.parameters: (HttpMethod pMethod)
focal_class.return: boolean
focal_class.signature: boolean isHttpMethodAllowed(HttpMethod pMethod)
focal_class.class_method_signature: DelegatingRestrictor.isTypeAllowed(RequestType pType)
focal_class.full_signature: public boolean isTypeAllowed(RequestType pType)
focal_class.identifier: isTypeAllowed
focal_class.modifiers: public
focal_class.parameters: (RequestType pType)
focal_class.return: boolean
focal_class.signature: boolean isTypeAllowed(RequestType pType)
focal_class.class_method_signature: DelegatingRestrictor.isAttributeReadAllowed(ObjectName pName, String pAttribute)
focal_class.full_signature: public boolean isAttributeReadAllowed(ObjectName pName, String pAttribute)
focal_class.identifier: isAttributeReadAllowed
focal_class.modifiers: public
focal_class.parameters: (ObjectName pName, String pAttribute)
focal_class.return: boolean
focal_class.signature: boolean isAttributeReadAllowed(ObjectName pName, String pAttribute)
focal_class.class_method_signature: DelegatingRestrictor.isAttributeWriteAllowed(ObjectName pName, String pAttribute)
focal_class.full_signature: public boolean isAttributeWriteAllowed(ObjectName pName, String pAttribute)
focal_class.identifier: isAttributeWriteAllowed
focal_class.modifiers: public
focal_class.parameters: (ObjectName pName, String pAttribute)
focal_class.return: boolean
focal_class.signature: boolean isAttributeWriteAllowed(ObjectName pName, String pAttribute)
focal_class.class_method_signature: DelegatingRestrictor.isOperationAllowed(ObjectName pName, String pOperation)
focal_class.full_signature: public boolean isOperationAllowed(ObjectName pName, String pOperation)
focal_class.identifier: isOperationAllowed
focal_class.modifiers: public
focal_class.parameters: (ObjectName pName, String pOperation)
focal_class.return: boolean
focal_class.signature: boolean isOperationAllowed(ObjectName pName, String pOperation)
focal_class.class_method_signature: DelegatingRestrictor.isRemoteAccessAllowed(String... pHostOrAddress)
focal_class.full_signature: public boolean isRemoteAccessAllowed(String... pHostOrAddress)
focal_class.identifier: isRemoteAccessAllowed
focal_class.modifiers: public
focal_class.parameters: (String... pHostOrAddress)
focal_class.return: boolean
focal_class.signature: boolean isRemoteAccessAllowed(String... pHostOrAddress)
focal_class.class_method_signature: DelegatingRestrictor.isOriginAllowed(String pOrigin, boolean pOnlyWhenStrictCheckingIsEnabled)
focal_class.full_signature: public boolean isOriginAllowed(String pOrigin, boolean pOnlyWhenStrictCheckingIsEnabled)
focal_class.identifier: isOriginAllowed
focal_class.modifiers: public
focal_class.parameters: (String pOrigin, boolean pOnlyWhenStrictCheckingIsEnabled)
focal_class.return: boolean
focal_class.signature: boolean isOriginAllowed(String pOrigin, boolean pOnlyWhenStrictCheckingIsEnabled)
focal_method.body: public boolean isHttpMethodAllowed(HttpMethod pMethod) {
          return checkRestrictorService(HTTP_METHOD_CHECK,pMethod);
      }
focal_method.class_method_signature: DelegatingRestrictor.isHttpMethodAllowed(HttpMethod pMethod)
focal_method.full_signature: public boolean isHttpMethodAllowed(HttpMethod pMethod)
focal_method.identifier: isHttpMethodAllowed
focal_method.invocations: checkRestrictorService
focal_method.modifiers: public
focal_method.parameters: (HttpMethod pMethod)
focal_method.return: boolean
focal_method.signature: boolean isHttpMethodAllowed(HttpMethod pMethod)