Skip to content

I don't understand the answer here: https://github.com/aws/aws-sdk-java-v2/issues/4386#issuecomment-1712361944 #4719

Discussion options

You must be logged in to vote

Ok I do understand it now but it required poking through the source code.

The key thing is that repeated calls to DefaultCredentialsProvider.create() return the same provider.

private static final DefaultCredentialsProvider DEFAULT_CREDENTIALS_PROVIDER = new DefaultCredentialsProvider(builder());

And then once closed, it's closed. So you need to be very careful how/where you use DefaultCredentialsProvider.create()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by q-nathangrand
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant