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()
AWSCredentialsProvider
getCredentials
in interface AWSCredentialsProvider
getCredentials
in interface AWSSessionCredentialsProvider
public void refresh()
AWSCredentialsProvider
refresh
in interface AWSCredentialsProvider
public void close()
close
in interface Closeable
close
in interface AutoCloseable