Skip to content

Commit

Permalink
Fix deprecated usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Aug 9, 2023
1 parent 54dbaea commit de8f6e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.AnonymousAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.internal.StaticCredentialsProvider;
Expand All @@ -53,7 +54,7 @@ public STSAssumeRoleAuthorizationService(final Host bookmark, final X509TrustMan
this(AWSSecurityTokenServiceClientBuilder
.standard()
.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(bookmark.getProtocol().getSTSEndpoint(), null))
.withCredentials(new StaticCredentialsProvider(new AnonymousAWSCredentials()))
.withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials()))
.withClientConfiguration(new CustomClientConfiguration(bookmark,
new ThreadLocalHostnameDelegatingTrustManager(trust, bookmark.getProtocol().getSTSEndpoint()), key))
.build());
Expand Down

0 comments on commit de8f6e1

Please sign in to comment.