public final class StsWebIdentityTokenFileCredentialsProvider extends Object
StsWebIdentityTokenFileCredentialsProvider allows passing of a custom StsClient at the time of instantiation of the provider.
The user needs to make sure that this StsClient handles IdpCommunicationErrorException in retry policy.
This Web Identity Token File Credentials Provider extends StsCredentialsProvider that supports periodically
updating session credentials. Refer StsCredentialsProvider for more details.
STWebIdentityTokenFileCredentialsProvider differs from StsWebIdentityTokenFileCredentialsProvider which is in sts package:
StsCredentialsProviderclose().StsCredentialsProvider| Modifier and Type | Class and Description |
|---|---|
protected static class |
StsCredentialsProvider.BaseBuilder<B extends StsCredentialsProvider.BaseBuilder<B,T>,T>
Extended by child class's builders to share configuration across credential providers.
|
static class |
StsWebIdentityTokenFileCredentialsProvider.Builder |
| Modifier and Type | Method and Description |
|---|---|
static StsWebIdentityTokenFileCredentialsProvider.Builder |
builder() |
void |
close() |
protected Credentials |
getUpdatedCredentials(StsClient stsClient)
Implemented by a child class to call STS and get a new set of credentials to be used by this provider.
|
Duration |
prefetchTime()
The amount of time, relative to STS token expiration, that the cached credentials are considered close to stale
and should be updated.
|
AwsCredentials |
resolveCredentials() |
Duration |
staleTime()
The amount of time, relative to STS token expiration, that the cached credentials are considered stale and
should no longer be used.
|
String |
toString() |
public static StsWebIdentityTokenFileCredentialsProvider.Builder builder()
public AwsCredentials resolveCredentials()
resolveCredentials in interface AwsCredentialsProviderprotected Credentials getUpdatedCredentials(StsClient stsClient)
public void close()
close in interface AutoCloseableclose in interface SdkAutoCloseablepublic Duration staleTime()
public Duration prefetchTime()
Copyright © 2022. All rights reserved.