test_class.file: agent/osgi/src/test/java/org/jolokia/osgi/security/ServiceAuthenticationHttpContextTest.java
test_class.identifier: ServiceAuthenticationHttpContextTest
test_case.body: @Test
      public void checkClose() throws Exception {
          BundleContext bundleContext = createBundleContext();
          expect(bundleContext.getServiceReferences(eq(Authenticator.class.getName()), (String) isNull())).andReturn(null);
          bundleContext.removeServiceListener((ServiceListener) anyObject());
          replay(bundleContext);
          ServiceAuthenticationHttpContext ctx = createContext(bundleContext, "service-any");
          ctx.close();
      }
test_case.class_method_signature: ServiceAuthenticationHttpContextTest.checkClose()
test_case.full_signature: @Test public void checkClose()
test_case.identifier: checkClose
test_case.invocations: createBundleContext andReturn expect getServiceReferences eq getName isNull removeServiceListener anyObject replay createContext close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkClose()
focal_class.declarator: AUTHMODE_SERVICE_ALL = "service-all"
focal_class.modifier: static final
focal_class.original_string: static final String AUTHMODE_SERVICE_ALL = "service-all";
focal_class.type: String
focal_class.var_name: AUTHMODE_SERVICE_ALL
focal_class.declarator: AUTHMODE_SERVICE_ANY = "service-any"
focal_class.modifier: static final
focal_class.original_string: static final String AUTHMODE_SERVICE_ANY = "service-any";
focal_class.type: String
focal_class.var_name: AUTHMODE_SERVICE_ANY
focal_class.declarator: authenticators = new HashSet<Authenticator>()
focal_class.modifier: private final
focal_class.original_string: private final Set<Authenticator> authenticators = new HashSet<Authenticator>();
focal_class.type: Set<Authenticator>
focal_class.var_name: authenticators
focal_class.declarator: authenticatorServiceTracker
focal_class.modifier: private
focal_class.original_string: private ServiceTracker authenticatorServiceTracker;
focal_class.type: ServiceTracker
focal_class.var_name: authenticatorServiceTracker
focal_class.declarator: checkModeAny
focal_class.modifier: private final
focal_class.original_string: private final boolean checkModeAny;
focal_class.type: boolean
focal_class.var_name: checkModeAny
focal_class.file: agent/osgi/src/main/java/org/jolokia/osgi/security/ServiceAuthenticationHttpContext.java
focal_class.identifier: ServiceAuthenticationHttpContext
focal_class.class_method_signature: ServiceAuthenticationHttpContext.ServiceAuthenticationHttpContext(final BundleContext bundleContext, final String authMode)
focal_class.full_signature: public  ServiceAuthenticationHttpContext(final BundleContext bundleContext, final String authMode)
focal_class.identifier: ServiceAuthenticationHttpContext
focal_class.modifiers: public
focal_class.parameters: (final BundleContext bundleContext, final String authMode)
focal_class.signature:  ServiceAuthenticationHttpContext(final BundleContext bundleContext, final String authMode)
focal_class.class_method_signature: ServiceAuthenticationHttpContext.handleSecurity(final HttpServletRequest request, final HttpServletResponse response)
focal_class.full_signature: @Override public boolean handleSecurity(final HttpServletRequest request, final HttpServletResponse response)
focal_class.identifier: handleSecurity
focal_class.modifiers: @Override public
focal_class.parameters: (final HttpServletRequest request, final HttpServletResponse response)
focal_class.return: boolean
focal_class.signature: boolean handleSecurity(final HttpServletRequest request, final HttpServletResponse response)
focal_class.class_method_signature: ServiceAuthenticationHttpContext.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ServiceAuthenticationHttpContext.shouldBeUsed(String authMode)
focal_class.full_signature: public static boolean shouldBeUsed(String authMode)
focal_class.identifier: shouldBeUsed
focal_class.modifiers: public static
focal_class.parameters: (String authMode)
focal_class.return: boolean
focal_class.signature: boolean shouldBeUsed(String authMode)
focal_class.superclass: extends DefaultHttpContext
focal_method.body: public void close() {
          if (authenticatorServiceTracker != null) {
              authenticatorServiceTracker.close();
              authenticatorServiceTracker = null;
          }
      }
focal_method.class_method_signature: ServiceAuthenticationHttpContext.close()
focal_method.full_signature: public void close()
focal_method.identifier: close
focal_method.invocations: close
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void close()