@FunctionalInterface public interface AwsCredentialsProvider extends IdentityProvider<AwsCredentialsIdentity>
AwsCredentials that are used for authentication.
Commonly-used implementations include StaticCredentialsProvider for a fixed set of credentials and the
DefaultCredentialsProvider for discovering credentials from the host's environment. The AWS Security Token
Service (STS) client also provides implementations of this interface for loading temporary, limited-privilege credentials from
AWS STS.
| Modifier and Type | Method and Description |
|---|---|
default Class<AwsCredentialsIdentity> |
identityType()
Retrieve the class of identity this identity provider produces.
|
AwsCredentials |
resolveCredentials()
Returns
AwsCredentials that can be used to authorize an AWS request. |
default CompletableFuture<AwsCredentialsIdentity> |
resolveIdentity(ResolveIdentityRequest request)
Resolve the identity from this identity provider.
|
resolveIdentity, resolveIdentityAwsCredentials resolveCredentials()
AwsCredentials that can be used to authorize an AWS request. Each implementation of AWSCredentialsProvider
can choose its own strategy for loading credentials. For example, an implementation might load credentials from an existing
key management system, or load new credentials when credentials are rotated.
If an error occurs during the loading of credentials or credentials could not be found, a runtime exception will be raised.
default Class<AwsCredentialsIdentity> identityType()
IdentityProvideridentityType in interface IdentityProvider<AwsCredentialsIdentity>default CompletableFuture<AwsCredentialsIdentity> resolveIdentity(ResolveIdentityRequest request)
IdentityProviderresolveIdentity in interface IdentityProvider<AwsCredentialsIdentity>request - The request to resolve an IdentityCopyright © 2026. All rights reserved.