Class AnonymousAWSCredentialsProvider

java.lang.Object
org.apache.hadoop.fs.s3a.AnonymousAWSCredentialsProvider
All Implemented Interfaces:
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider, software.amazon.awssdk.identity.spi.IdentityProvider<software.amazon.awssdk.identity.spi.AwsCredentialsIdentity>

@Private @Stable public class AnonymousAWSCredentialsProvider extends Object implements software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
AnonymousAWSCredentialsProvider supports anonymous access to AWS services through the AWS SDK. AWS requests will not be signed. This is not suitable for most cases, because allowing anonymous access to an S3 bucket compromises security. This can be useful for accessing public data sets without requiring AWS credentials. 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
     
  • 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

    • AnonymousAWSCredentialsProvider

      public AnonymousAWSCredentialsProvider()
  • 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