Using credentials providers in the Amazon SDK for Java 2.x - Amazon SDK for Java 2.x
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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

The role of a credentials provider in the Amazon SDK for Java 2.x is to source and supply credentials to the SDK's Amazon Web Services 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 (Amazon Identity and Access Management) role as examples, a session token is added to the access keys, providing time-limited access to Amazon resources.

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