Class TemporaryAWSCredentialsProvider

All Implemented Interfaces:
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider, software.amazon.awssdk.identity.spi.IdentityProvider<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>

@Public @Stable public class TemporaryAWSCredentialsProvider extends AbstractSessionCredentialsProvider
Support 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.
  • Field Details

  • Constructor Details

    • TemporaryAWSCredentialsProvider

      public TemporaryAWSCredentialsProvider(org.apache.hadoop.conf.Configuration conf) throws IOException
      Construct from just a configuration.
      Parameters:
      conf - configuration.
      Throws:
      IOException - on any failure to load the credentials.
    • TemporaryAWSCredentialsProvider

      public TemporaryAWSCredentialsProvider(@Nullable URI uri, org.apache.hadoop.conf.Configuration conf) throws IOException
      Constructor: the URI will be null if the provider is inited unbonded to a filesystem.
      Parameters:
      uri - binding to a filesystem URI.
      conf - configuration.
      Throws:
      IOException - on any failure to load the credentials.
  • Method Details