test_class.file: dubbo-plugin/dubbo-auth/src/test/java/org/apache/dubbo/auth/DefaultAccessKeyStorageTest.java
test_class.identifier: DefaultAccessKeyStorageTest
test_case.body: @Test
      void testGetAccessKey() {
          URL url = URL.valueOf("dubbo://10.10.10.10:2181")
                  .addParameter(Constants.ACCESS_KEY_ID_KEY, "ak")
                  .addParameter(Constants.SECRET_ACCESS_KEY_KEY, "sk");
          DefaultAccessKeyStorage defaultAccessKeyStorage = new DefaultAccessKeyStorage();
          AccessKeyPair accessKey = defaultAccessKeyStorage.getAccessKey(url, mock(Invocation.class));
          assertNotNull(accessKey);
          assertEquals(accessKey.getAccessKey(), "ak");
          assertEquals(accessKey.getSecretKey(), "sk");
      }
test_case.class_method_signature: DefaultAccessKeyStorageTest.testGetAccessKey()
test_case.full_signature: @Test void testGetAccessKey()
test_case.identifier: testGetAccessKey
test_case.invocations: addParameter addParameter valueOf getAccessKey mock assertNotNull assertEquals getAccessKey assertEquals getSecretKey
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAccessKey()
focal_class.file: dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/DefaultAccessKeyStorage.java
focal_class.identifier: DefaultAccessKeyStorage
focal_class.interfaces: implements AccessKeyStorage
focal_class.class_method_signature: DefaultAccessKeyStorage.getAccessKey(URL url, Invocation invocation)
focal_class.full_signature: @Override public AccessKeyPair getAccessKey(URL url, Invocation invocation)
focal_class.identifier: getAccessKey
focal_class.modifiers: @Override public
focal_class.parameters: (URL url, Invocation invocation)
focal_class.return: AccessKeyPair
focal_class.signature: AccessKeyPair getAccessKey(URL url, Invocation invocation)
focal_method.body: @Override
      public AccessKeyPair getAccessKey(URL url, Invocation invocation) {
          AccessKeyPair accessKeyPair = new AccessKeyPair();
          String accessKeyId = url.getParameter(Constants.ACCESS_KEY_ID_KEY);
          String secretAccessKey = url.getParameter(Constants.SECRET_ACCESS_KEY_KEY);
          accessKeyPair.setAccessKey(accessKeyId);
          accessKeyPair.setSecretKey(secretAccessKey);
          return accessKeyPair;
      }
focal_method.class_method_signature: DefaultAccessKeyStorage.getAccessKey(URL url, Invocation invocation)
focal_method.full_signature: @Override public AccessKeyPair getAccessKey(URL url, Invocation invocation)
focal_method.identifier: getAccessKey
focal_method.invocations: getParameter getParameter setAccessKey setSecretKey
focal_method.modifiers: @Override public
focal_method.parameters: (URL url, Invocation invocation)
focal_method.return: AccessKeyPair
focal_method.signature: AccessKeyPair getAccessKey(URL url, Invocation invocation)