public class STSAssumeRoleWithWebIdentitySessionCredentialsProvider extends Object implements AWSSessionCredentialsProvider, Closeable
Migrating to the AWS SDK for Java v2
The v2 equivalent of this class is StsAssumeRoleWithWebIdentityCredentialsProvider
See Migration Guide for more information.
| Modifier and Type | Class and Description |
|---|---|
static class |
STSAssumeRoleWithWebIdentitySessionCredentialsProvider.Builder
Provides a builder pattern to avoid combinatorial explosion of the number of parameters that
are passed to constructors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down this credentials provider, shutting down the thread that performs asynchronous credential refreshing.
|
AWSSessionCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
public AWSSessionCredentials getCredentials()
AWSCredentialsProvidergetCredentials in interface AWSCredentialsProvidergetCredentials in interface AWSSessionCredentialsProviderpublic void refresh()
AWSCredentialsProviderrefresh in interface AWSCredentialsProviderpublic void close()
close in interface Closeableclose in interface AutoCloseable