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 4760e5c commit adff9aa
Showing 1 changed file with 2 additions and 1 deletion.
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 adff9aa

Please sign in to comment.