Class RESTSigV4AuthManager

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apache.iceberg.rest.auth.AuthManager

    public class RESTSigV4AuthManager
    extends java.lang.Object
    implements org.apache.iceberg.rest.auth.AuthManager
    An AuthManager that authenticates requests with SigV4.

    It takes a delegate AuthManager to handle double authentication cases, e.g. on top of OAuth2.

    • Constructor Summary

      Constructors 
      Constructor Description
      RESTSigV4AuthManager​(java.lang.String name, org.apache.iceberg.rest.auth.AuthManager delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RESTSigV4AuthSession catalogSession​(org.apache.iceberg.rest.RESTClient sharedClient, java.util.Map<java.lang.String,​java.lang.String> properties)  
      void close()  
      org.apache.iceberg.rest.auth.AuthSession contextualSession​(org.apache.iceberg.catalog.SessionCatalog.SessionContext context, org.apache.iceberg.rest.auth.AuthSession parent)  
      RESTSigV4AuthSession initSession​(org.apache.iceberg.rest.RESTClient initClient, java.util.Map<java.lang.String,​java.lang.String> properties)  
      org.apache.iceberg.rest.auth.AuthSession tableSession​(org.apache.iceberg.catalog.TableIdentifier table, java.util.Map<java.lang.String,​java.lang.String> properties, org.apache.iceberg.rest.auth.AuthSession parent)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RESTSigV4AuthManager

        public RESTSigV4AuthManager​(java.lang.String name,
                                    org.apache.iceberg.rest.auth.AuthManager delegate)
    • Method Detail

      • initSession

        public RESTSigV4AuthSession initSession​(org.apache.iceberg.rest.RESTClient initClient,
                                                java.util.Map<java.lang.String,​java.lang.String> properties)
        Specified by:
        initSession in interface org.apache.iceberg.rest.auth.AuthManager
      • catalogSession

        public RESTSigV4AuthSession catalogSession​(org.apache.iceberg.rest.RESTClient sharedClient,
                                                   java.util.Map<java.lang.String,​java.lang.String> properties)
        Specified by:
        catalogSession in interface org.apache.iceberg.rest.auth.AuthManager
      • contextualSession

        public org.apache.iceberg.rest.auth.AuthSession contextualSession​(org.apache.iceberg.catalog.SessionCatalog.SessionContext context,
                                                                          org.apache.iceberg.rest.auth.AuthSession parent)
        Specified by:
        contextualSession in interface org.apache.iceberg.rest.auth.AuthManager
      • tableSession

        public org.apache.iceberg.rest.auth.AuthSession tableSession​(org.apache.iceberg.catalog.TableIdentifier table,
                                                                     java.util.Map<java.lang.String,​java.lang.String> properties,
                                                                     org.apache.iceberg.rest.auth.AuthSession parent)
        Specified by:
        tableSession in interface org.apache.iceberg.rest.auth.AuthManager
      • close

        public void close()
        Specified by:
        close in interface org.apache.iceberg.rest.auth.AuthManager
        Specified by:
        close in interface java.lang.AutoCloseable