Class DynamicTemporaryAWSCredentialsProvider
- java.lang.Object
-
- org.apache.flink.fs.s3.common.token.DynamicTemporaryAWSCredentialsProvider
-
- All Implemented Interfaces:
com.amazonaws.auth.AWSCredentialsProvider
@Internal public class DynamicTemporaryAWSCredentialsProvider extends Object implements com.amazonaws.auth.AWSCredentialsProvider
Support dynamic session credentials for authenticating with AWS. Please note that users may reference this class name from configuration property fs.s3a.aws.credentials.provider. Therefore, changing the class name would be a backward-incompatible change. This credential provider must not fail in creation because that will break a chain of credential providers.
-
-
Constructor Summary
Constructors Constructor Description DynamicTemporaryAWSCredentialsProvider()
DynamicTemporaryAWSCredentialsProvider(URI uri, org.apache.hadoop.conf.Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.auth.AWSCredentials
getCredentials()
void
refresh()
-
-
-
Field Detail
-
NAME
public static final String NAME
-
COMPONENT
public static final String COMPONENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DynamicTemporaryAWSCredentialsProvider
public DynamicTemporaryAWSCredentialsProvider()
-
DynamicTemporaryAWSCredentialsProvider
public DynamicTemporaryAWSCredentialsProvider(URI uri, org.apache.hadoop.conf.Configuration conf)
-
-
Method Detail
-
getCredentials
public com.amazonaws.auth.AWSCredentials getCredentials() throws com.amazonaws.SdkBaseException
- Specified by:
getCredentials
in interfacecom.amazonaws.auth.AWSCredentialsProvider
- Throws:
com.amazonaws.SdkBaseException
-
refresh
public void refresh()
- Specified by:
refresh
in interfacecom.amazonaws.auth.AWSCredentialsProvider
-
-