Replacement of AWSCredentialsProvider#refresh() in AWS SDK Java v2

150 views Asked by At

I used to have a custom implementation of the AWSCredentialsProvider's refresh() method then when I migrated to the AWS SDK v2, the AwsCredentialsProvider does not provide such a method anymore. How should I implement the refresh credentials mechanism in the new v2 SDK?

1

There are 1 answers

0
rlhagerm On

Based on the answer here and the documentation, it appears that refresh now happens automatically in the background. This likely means you won't be able to hook into that action with custom logic if you are upgrading to v2.