public final class DefaultCredentialsProvider extends Object implements AwsCredentialsProvider, SdkAutoCloseable
aws.accessKeyId and aws.secretKeyAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY| Modifier and Type | Class and Description | 
|---|---|
| static class  | DefaultCredentialsProvider.BuilderConfiguration that defines the  DefaultCredentialsProvider's behavior. | 
| Modifier and Type | Method and Description | 
|---|---|
| static DefaultCredentialsProvider.Builder | builder()Get a builder for defining a  DefaultCredentialsProviderwith custom configuration. | 
| void | close() | 
| static DefaultCredentialsProvider | create()Create an create of the  DefaultCredentialsProviderusing the default configuration. | 
| AwsCredentials | resolveCredentials()Returns  AwsCredentialsthat can be used to authorize an AWS request. | 
| String | toString() | 
public static DefaultCredentialsProvider create()
DefaultCredentialsProvider using the default configuration. Configuration can be
 specified by creating an create using the builder().public static DefaultCredentialsProvider.Builder builder()
DefaultCredentialsProvider with custom configuration.public AwsCredentials resolveCredentials()
AwsCredentialsProviderAwsCredentials that can be used to authorize an AWS request. Each implementation of AWSCredentialsProvider
 can chose 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.
resolveCredentials in interface AwsCredentialsProviderpublic void close()
close in interface AutoCloseableclose in interface SdkAutoCloseableCopyright © 2019. All rights reserved.