Class S3HttpUtil

    • Constructor Detail

      • S3HttpUtil

        public S3HttpUtil()
    • Method Detail

      • setProxyForS3

        public static void setProxyForS3​(HttpClientSettingsKey key,
                                         com.amazonaws.ClientConfiguration clientConfig)
        A static function to set S3 proxy params when there is a valid session
        Parameters:
        key - key to HttpClient map containing OCSP and proxy info
        clientConfig - the configuration needed by S3 to set the proxy
      • setSessionlessProxyForS3

        public static void setSessionlessProxyForS3​(Properties proxyProperties,
                                                    com.amazonaws.ClientConfiguration clientConfig)
                                             throws SnowflakeSQLException
        A static function to set S3 proxy params for sessionless connections using the proxy params from the StageInfo
        Parameters:
        proxyProperties - proxy properties
        clientConfig - the configuration needed by S3 to set the proxy
        Throws:
        SnowflakeSQLException - when an error is encountered