public final class InstanceProfileCredentialsProvider extends HttpCredentialsProvider
If SdkSystemSetting.AWS_EC2_METADATA_DISABLED
is set to true, it will not try to load
credentials from EC2 metadata service and will return null.
Modifier and Type | Class and Description |
---|---|
static interface |
InstanceProfileCredentialsProvider.Builder
A builder for creating a custom a
InstanceProfileCredentialsProvider . |
Modifier and Type | Method and Description |
---|---|
static InstanceProfileCredentialsProvider.Builder |
builder()
Create a builder for creating a
InstanceProfileCredentialsProvider . |
static InstanceProfileCredentialsProvider |
create()
Create a
InstanceProfileCredentialsProvider with default values. |
protected ResourcesEndpointProvider |
getCredentialsEndpointProvider() |
protected boolean |
isLocalCredentialLoadingDisabled()
Can be overridden by subclass to decide whether loading credential is disabled or not.
|
String |
toString() |
close, resolveCredentials
public static InstanceProfileCredentialsProvider.Builder builder()
InstanceProfileCredentialsProvider
.public static InstanceProfileCredentialsProvider create()
InstanceProfileCredentialsProvider
with default values.InstanceProfileCredentialsProvider
protected ResourcesEndpointProvider getCredentialsEndpointProvider()
getCredentialsEndpointProvider
in class HttpCredentialsProvider
protected boolean isLocalCredentialLoadingDisabled()
HttpCredentialsProvider
isLocalCredentialLoadingDisabled
in class HttpCredentialsProvider
Copyright © 2019. All rights reserved.