Class WebIdentityTokenFileCredentialsProvider

java.lang.Object
software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider
All Implemented Interfaces:
AutoCloseable, AwsCredentialsProvider, IdentityProvider<AwsCredentialsIdentity>, ToCopyableBuilder<WebIdentityTokenFileCredentialsProvider.Builder,WebIdentityTokenFileCredentialsProvider>, SdkAutoCloseable

A credential provider that will read web identity token file path, aws role arn and aws session name from system properties or environment variables for using web identity token credentials with STS.

Use of this credentials provider requires the 'sts' module to be on the classpath.

StsWebIdentityTokenFileCredentialsProvider in sts package can be used instead of this class if any one of following is required

  • Pass a custom StsClient to the provider.
  • Periodically update credentials
See Also: