Class V1ToV2AwsCredentialProviderAdapter

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

public final class V1ToV2AwsCredentialProviderAdapter extends Object implements software.amazon.awssdk.auth.credentials.AwsCredentialsProvider, Closeable
Adapts a V1 AWSCredentialsProvider to the V2 AwsCredentialsProvider interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the wrapped provider if it implements Closeable/AutoCloseable.
    software.amazon.awssdk.auth.credentials.AwsCredentials
    Collect v1 credentials and convert to v2.
     

    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
  • Method Details

    • resolveCredentials

      public software.amazon.awssdk.auth.credentials.AwsCredentials resolveCredentials()
      Collect v1 credentials and convert to v2.
      Specified by:
      resolveCredentials in interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
      Returns:
      v2 credentials
      Throws:
      CredentialInitializationException - if the inner retrieval raised an exception
    • close

      public void close() throws IOException
      Close the wrapped provider if it implements Closeable/AutoCloseable.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException - failure
    • toString

      public String toString()
      Overrides:
      toString in class Object