Package org.apache.hadoop.fs.s3a

Class SimpleAWSCredentialsProvider

java.lang.Object
org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider
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 SimpleAWSCredentialsProvider extends Object implements software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
Support simple 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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Build the credentials from a filesystem URI and configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    software.amazon.awssdk.auth.credentials.AwsCredentials
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvider

    identityType, resolveIdentity

    Methods inherited from interface software.amazon.awssdk.identity.spi.IdentityProvider

    resolveIdentity, resolveIdentity
  • Field Details

  • Constructor Details

    • SimpleAWSCredentialsProvider

      public SimpleAWSCredentialsProvider(URI uri, Configuration conf) throws IOException
      Build the credentials from a filesystem URI and configuration.
      Parameters:
      uri - FS URI
      conf - configuration containing secrets/references to.
      Throws:
      IOException - failure
  • Method Details

    • resolveCredentials

      public software.amazon.awssdk.auth.credentials.AwsCredentials resolveCredentials()
      Specified by:
      resolveCredentials in interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
    • toString

      public String toString()
      Overrides:
      toString in class Object