test_class.file: agent/core/src/test/java/org/jolokia/util/AuthorizationHeaderParserTest.java
test_class.identifier: AuthorizationHeaderParserTest
test_case.body: @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*BasicAuthentication.*")
      public void testParseAuthorizationWrongMethod() throws Exception {
          AuthorizationHeaderParser.parse("Digest cm9sYW5kOnMhY3IhdA==");
      }
test_case.class_method_signature: AuthorizationHeaderParserTest.testParseAuthorizationWrongMethod()
test_case.full_signature: @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*BasicAuthentication.*") public void testParseAuthorizationWrongMethod()
test_case.identifier: testParseAuthorizationWrongMethod
test_case.invocations: parse
test_case.modifiers: @Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = ".*BasicAuthentication.*") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseAuthorizationWrongMethod()
focal_class.declarator: JOLOKIA_ALTERNATE_AUTHORIZATION_HEADER="X-jolokia-authorization"
focal_class.modifier: public static final
focal_class.original_string: public static final String JOLOKIA_ALTERNATE_AUTHORIZATION_HEADER="X-jolokia-authorization";
focal_class.type: String
focal_class.var_name: JOLOKIA_ALTERNATE_AUTHORIZATION_HEADER
focal_class.file: agent/core/src/main/java/org/jolokia/util/AuthorizationHeaderParser.java
focal_class.identifier: AuthorizationHeaderParser
focal_class.class_method_signature: AuthorizationHeaderParser.AuthorizationHeaderParser()
focal_class.full_signature: private  AuthorizationHeaderParser()
focal_class.identifier: AuthorizationHeaderParser
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  AuthorizationHeaderParser()
focal_class.class_method_signature: AuthorizationHeaderParser.parse(String pAuthInfo)
focal_class.full_signature: public static Result parse(String pAuthInfo)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String pAuthInfo)
focal_class.return: Result
focal_class.signature: Result parse(String pAuthInfo)
focal_method.body: public static Result parse(String pAuthInfo) {
          StringTokenizer stok = new StringTokenizer(pAuthInfo);
          String method = stok.nextToken();
          if (!HttpServletRequest.BASIC_AUTH.equalsIgnoreCase(method)) {
              throw new IllegalArgumentException("Only BasicAuthentication is supported");
          }
  
          String b64Auth = stok.nextToken();
          String auth = new String(Base64Util.decode(b64Auth));
  
          int p = auth.indexOf(':');
          String user;
          String password;
          boolean valid;
          if (p != -1) {
              user = auth.substring(0, p);
              password = auth.substring(p+1);
              valid = true;
          } else {
              valid = false;
              user = null;
              password = null;
          }
          return new Result(method,user,password,valid);
      }
focal_method.class_method_signature: AuthorizationHeaderParser.parse(String pAuthInfo)
focal_method.full_signature: public static Result parse(String pAuthInfo)
focal_method.identifier: parse
focal_method.invocations: nextToken equalsIgnoreCase nextToken decode indexOf substring substring
focal_method.modifiers: public static
focal_method.parameters: (String pAuthInfo)
focal_method.return: Result
focal_method.signature: Result parse(String pAuthInfo)