Using credentials providers in the AWS SDK for Java 2.x - AWS SDK for Java 2.x

Using credentials providers in the AWS SDK for Java 2.x

The role of a credentials provider in the AWS SDK for Java 2.x is to source and supply credentials to the SDK's AWS service clients. The SDK uses the credentials it sources to authenticate with the service by cryptographically signing each request. Credentials usually consist of access keys—an access key ID and a secret access key together.

When you use temporary credentials, which are used when you setup SSO token provider configuration or configure your runtime to assume an IAM (AWS Identity and Access Management) role as examples, a session token is added to the access keys, providing time-limited access to AWS resources.

This topic discusses several ways that you enable the SDK to access credentials.