public class AWSStaticCredentialsProvider extends Object implements AWSCredentialsProvider
Migrating to the AWS SDK for Java v2
The v2 equivalent of this class is StaticCredentialsProvider
See Migration Guide for more information.
Constructor and Description |
---|
AWSStaticCredentialsProvider(AWSCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
AWSCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request.
|
void |
refresh()
Forces this credentials provider to refresh its credentials.
|
public AWSStaticCredentialsProvider(AWSCredentials credentials)
public AWSCredentials getCredentials()
AWSCredentialsProvider
getCredentials
in interface AWSCredentialsProvider
public void refresh()
AWSCredentialsProvider
refresh
in interface AWSCredentialsProvider