public class WebIdentityTokenCredentialsProvider extends Object implements AWSCredentialsProvider
Migrating to the AWS SDK for Java v2
The v2 equivalent of this class is WebIdentityTokenFileCredentialsProvider
See Migration Guide for more information.
Modifier and Type | Class and Description |
---|---|
static interface |
WebIdentityTokenCredentialsProvider.Builder
A builder for creating a custom
WebIdentityTokenCredentialsProvider . |
Constructor and Description |
---|
WebIdentityTokenCredentialsProvider() |
Modifier and Type | Method and Description |
---|---|
static WebIdentityTokenCredentialsProvider.Builder |
builder() |
static WebIdentityTokenCredentialsProvider |
create() |
AWSCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
String |
toString() |
public AWSCredentials getCredentials()
AWSCredentialsProvider
getCredentials
in interface AWSCredentialsProvider
public void refresh()
AWSCredentialsProvider
refresh
in interface AWSCredentialsProvider
public static WebIdentityTokenCredentialsProvider create()
public static WebIdentityTokenCredentialsProvider.Builder builder()