test_class.file: agent/jvm/src/test/java/org/jolokia/jvmagent/security/UserPasswordAuthenticatorTest.java
test_class.identifier: UserPasswordAuthenticatorTest
test_case.body: @Test
      public void testCheckCredentials() throws Exception {
          UserPasswordAuthenticator auth = new UserPasswordAuthenticator("jolokia","roland","s!cr!t");
          assertTrue(auth.checkCredentials("roland","s!cr!t"));
          assertFalse(auth.checkCredentials("roland", "bla"));
          assertFalse(auth.checkCredentials(null, "bla"));
          assertFalse(auth.checkCredentials("roland", null));
          assertFalse(auth.checkCredentials(null, null));
  
      }
test_case.class_method_signature: UserPasswordAuthenticatorTest.testCheckCredentials()
test_case.full_signature: @Test public void testCheckCredentials()
test_case.identifier: testCheckCredentials
test_case.invocations: assertTrue checkCredentials assertFalse checkCredentials assertFalse checkCredentials assertFalse checkCredentials assertFalse checkCredentials
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCheckCredentials()
focal_class.declarator: user
focal_class.modifier: private
focal_class.original_string: private String user;
focal_class.type: String
focal_class.var_name: user
focal_class.declarator: password
focal_class.modifier: private
focal_class.original_string: private String password;
focal_class.type: String
focal_class.var_name: password
focal_class.file: agent/jvm/src/main/java/org/jolokia/jvmagent/security/UserPasswordAuthenticator.java
focal_class.identifier: UserPasswordAuthenticator
focal_class.class_method_signature: UserPasswordAuthenticator.UserPasswordAuthenticator(String pRealm, String pUser, String pPassword)
focal_class.full_signature: public  UserPasswordAuthenticator(String pRealm, String pUser, String pPassword)
focal_class.identifier: UserPasswordAuthenticator
focal_class.modifiers: public
focal_class.parameters: (String pRealm, String pUser, String pPassword)
focal_class.signature:  UserPasswordAuthenticator(String pRealm, String pUser, String pPassword)
focal_class.class_method_signature: UserPasswordAuthenticator.checkCredentials(String pUserGiven, String pPasswordGiven)
focal_class.full_signature: public boolean checkCredentials(String pUserGiven, String pPasswordGiven)
focal_class.identifier: checkCredentials
focal_class.modifiers: public
focal_class.parameters: (String pUserGiven, String pPasswordGiven)
focal_class.return: boolean
focal_class.signature: boolean checkCredentials(String pUserGiven, String pPasswordGiven)
focal_class.class_method_signature: UserPasswordAuthenticator.authenticate(HttpExchange httpExchange)
focal_class.full_signature: @Override public Result authenticate(HttpExchange httpExchange)
focal_class.identifier: authenticate
focal_class.modifiers: @Override public
focal_class.parameters: (HttpExchange httpExchange)
focal_class.return: Result
focal_class.signature: Result authenticate(HttpExchange httpExchange)
focal_class.superclass: extends BasicAuthenticator
focal_method.body: public boolean checkCredentials(String pUserGiven, String pPasswordGiven) {
      return user.equals(pUserGiven) && password.equals(pPasswordGiven);
    }
focal_method.class_method_signature: UserPasswordAuthenticator.checkCredentials(String pUserGiven, String pPasswordGiven)
focal_method.full_signature: public boolean checkCredentials(String pUserGiven, String pPasswordGiven)
focal_method.identifier: checkCredentials
focal_method.invocations: equals equals
focal_method.modifiers: public
focal_method.parameters: (String pUserGiven, String pPasswordGiven)
focal_method.return: boolean
focal_method.signature: boolean checkCredentials(String pUserGiven, String pPasswordGiven)