public abstract class HttpCredentialsProvider extends Object implements AwsCredentialsProvider, SdkAutoCloseable
Modifier and Type | Class and Description |
---|---|
static interface |
HttpCredentialsProvider.Builder<TypeToBuildT extends HttpCredentialsProvider,BuilderT extends HttpCredentialsProvider.Builder> |
protected static class |
HttpCredentialsProvider.BuilderImpl<TypeToBuildT extends HttpCredentialsProvider,BuilderT extends HttpCredentialsProvider.Builder>
A builder for creating a custom a
InstanceProfileCredentialsProvider . |
Modifier | Constructor and Description |
---|---|
protected |
HttpCredentialsProvider(HttpCredentialsProvider.BuilderImpl<?,?> builder) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract ResourcesEndpointProvider |
getCredentialsEndpointProvider() |
protected boolean |
isLocalCredentialLoadingDisabled()
Can be overridden by subclass to decide whether loading credential is disabled or not.
|
AwsCredentials |
resolveCredentials()
Returns
AwsCredentials that can be used to authorize an AWS request. |
protected HttpCredentialsProvider(HttpCredentialsProvider.BuilderImpl<?,?> builder)
protected abstract ResourcesEndpointProvider getCredentialsEndpointProvider()
protected boolean isLocalCredentialLoadingDisabled()
public AwsCredentials resolveCredentials()
AwsCredentialsProvider
AwsCredentials
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 AwsCredentialsProvider
public void close()
close
in interface AutoCloseable
close
in interface SdkAutoCloseable
Copyright © 2019. All rights reserved.