How DefaultAWSCredentialsProviderChain refresh the aws client token?

0

I am creating AmazonS3Client using DefaultAWSCredentialsProviderChain. Inside this, I have used WebIdentityTokenCredentialsProvider which is internally calling STSProfileCredentialsServiceLoader. My question is, in the case when the token is refreshed, how AmazonS3Client automatically get to know about it and uses the new credentials? Once the bean(AmazonS3Client) is created, how the tokens are refreshed and reflected back to the already instantiated bean? Is there any implementation that is modifying the AmazonS3Client? I am unable to get the code flow between AmazonS3Client and AWSCredentialsProvider. Can someone help me to understand that?

Also is there any way to achieve the same(DefaultAWSCredentialsProviderChain) using any custom implementation while creating AWSIotMqttClient bean?

I am using java-spring-boot for building the application.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인