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?
Replacement of AWSCredentialsProvider#refresh() in AWS SDK Java v2
186 views Asked by dk7 At
1
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.