public class WebIdentityTokenFileCredentialsProvider extends Object implements AwsCredentialsProvider, SdkAutoCloseable, ToCopyableBuilder<WebIdentityTokenFileCredentialsProvider.Builder,WebIdentityTokenFileCredentialsProvider>
Use of this credentials provider requires the 'sts' module to be on the classpath.
StsWebIdentityTokenFileCredentialsProvider in sts package can be used instead of this class if any one of following is required
AwsCredentialsProvider
Modifier and Type | Class and Description |
---|---|
static interface |
WebIdentityTokenFileCredentialsProvider.Builder
A builder for creating a custom
WebIdentityTokenFileCredentialsProvider . |
Modifier and Type | Method and Description |
---|---|
static WebIdentityTokenFileCredentialsProvider.Builder |
builder() |
void |
close() |
static WebIdentityTokenFileCredentialsProvider |
create() |
AwsCredentials |
resolveCredentials()
Returns
AwsCredentials that can be used to authorize an AWS request. |
WebIdentityTokenFileCredentialsProvider.Builder |
toBuilder() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
public static WebIdentityTokenFileCredentialsProvider create()
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 static WebIdentityTokenFileCredentialsProvider.Builder builder()
public WebIdentityTokenFileCredentialsProvider.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<WebIdentityTokenFileCredentialsProvider.Builder,WebIdentityTokenFileCredentialsProvider>
public void close()
close
in interface AutoCloseable
close
in interface SdkAutoCloseable
Copyright © 2022. All rights reserved.