Class 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 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 interface com.amazonaws.auth.AWSCredentialsProvider
        Throws:
        com.amazonaws.SdkBaseException
      • refresh

        public void refresh()
        Specified by:
        refresh in interface com.amazonaws.auth.AWSCredentialsProvider