4747public class AwsCredentialsStorageIntegration
4848 extends InMemoryStorageIntegration <AwsStorageConfigurationInfo > {
4949 private final StsClient stsClient ;
50- private final Optional <AwsCredentialsProvider > credentials ;
50+ private final Optional <AwsCredentialsProvider > credentialsProvider ;
5151
5252 public AwsCredentialsStorageIntegration (StsClient stsClient ) {
5353 this (stsClient , Optional .empty ());
5454 }
5555
5656 public AwsCredentialsStorageIntegration (
57- StsClient stsClient , Optional <AwsCredentialsProvider > credentials ) {
57+ StsClient stsClient , Optional <AwsCredentialsProvider > credentialsProvider ) {
5858 super (AwsCredentialsStorageIntegration .class .getName ());
5959 this .stsClient = stsClient ;
60- this .credentials = credentials ;
60+ this .credentialsProvider = credentialsProvider ;
6161 }
6262
6363 /** {@inheritDoc} */
@@ -81,7 +81,8 @@ public EnumMap<StorageAccessProperty, String> getSubscopedCreds(
8181 allowedWriteLocations )
8282 .toJson ())
8383 .durationSeconds (loadConfig (STORAGE_CREDENTIAL_DURATION_SECONDS ));
84- credentials .ifPresent (c -> request .overrideConfiguration (b -> b .credentialsProvider (c )));
84+ credentialsProvider .ifPresent (
85+ cp -> request .overrideConfiguration (b -> b .credentialsProvider (cp )));
8586 AssumeRoleResponse response = stsClient .assumeRole (request .build ());
8687 EnumMap <StorageAccessProperty , String > credentialMap =
8788 new EnumMap <>(StorageAccessProperty .class );
0 commit comments