test_class.declarator: ctx
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      ApplicationContext ctx;
test_class.type: ApplicationContext
test_class.var_name: ctx
test_class.file: micro-s3/src/test/java/com/oath/micro/server/s3/plugin/S3ClientProviderTest.java
test_class.identifier: S3ClientProviderTest
test_case.body: @Test
      public void accessKey() {
          S3ClientProvider provider = new S3ClientProvider();
          S3Configuration s3Configuration = new S3Configuration("fakeProvidedKeyId",
                                                                "fakeProvidedSecretKey",
                                                                false,
                                                                null,
                                                                null,
                                                                5,
                                                                "s3-transfer-manager-worker-",
                                                                100);
          ReflectionTestUtils.setField(provider, "s3Configuration", s3Configuration);
          AWSCredentials credentials = provider.getAwsCredentials();
          assertEquals("fakeProvidedKeyId", credentials.getAWSAccessKeyId());
          assertEquals("fakeProvidedSecretKey", credentials.getAWSSecretKey());
      }
test_case.class_method_signature: S3ClientProviderTest.accessKey()
test_case.full_signature: @Test public void accessKey()
test_case.identifier: accessKey
test_case.invocations: setField getAwsCredentials assertEquals getAWSAccessKeyId assertEquals getAWSSecretKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void accessKey()
focal_class.declarator: s3Configuration
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private S3Configuration s3Configuration;
focal_class.type: S3Configuration
focal_class.var_name: s3Configuration
focal_class.file: micro-s3/src/main/java/com/oath/micro/server/s3/plugin/S3ClientProvider.java
focal_class.identifier: S3ClientProvider
focal_class.class_method_signature: S3ClientProvider.getClient()
focal_class.full_signature: @Bean public AmazonS3Client getClient()
focal_class.identifier: getClient
focal_class.modifiers: @Bean public
focal_class.parameters: ()
focal_class.return: AmazonS3Client
focal_class.signature: AmazonS3Client getClient()
focal_class.class_method_signature: S3ClientProvider.getAwsCredentials()
focal_class.full_signature:  AWSCredentials getAwsCredentials()
focal_class.identifier: getAwsCredentials
focal_class.parameters: ()
focal_class.return: AWSCredentials
focal_class.signature: AWSCredentials getAwsCredentials()
focal_class.class_method_signature: S3ClientProvider.getClientConfiguration()
focal_class.full_signature: private ClientConfiguration getClientConfiguration()
focal_class.identifier: getClientConfiguration
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ClientConfiguration
focal_class.signature: ClientConfiguration getClientConfiguration()
focal_method.body: AWSCredentials getAwsCredentials() {
          AWSCredentials credentials;
  
          if(s3Configuration.isDefaultChainEnabled()) {
              credentials = new DefaultAWSCredentialsProviderChain().getCredentials();
          } else if (s3Configuration.getSessionToken() == null) {
              credentials = new BasicAWSCredentials(s3Configuration.getAccessKey(), s3Configuration.getSecretKey());
          } else {
              credentials = new BasicSessionCredentials(s3Configuration.getAccessKey(), s3Configuration.getSecretKey(),
                                                        s3Configuration.getSessionToken());
          }
          return credentials;
      }
focal_method.class_method_signature: S3ClientProvider.getAwsCredentials()
focal_method.full_signature:  AWSCredentials getAwsCredentials()
focal_method.identifier: getAwsCredentials
focal_method.invocations: isDefaultChainEnabled getCredentials getSessionToken getAccessKey getSecretKey getAccessKey getSecretKey getSessionToken
focal_method.parameters: ()
focal_method.return: AWSCredentials
focal_method.signature: AWSCredentials getAwsCredentials()