Class StageCredentialUtil
- java.lang.Object
-
- net.snowflake.hivemetastoreconnector.util.StageCredentialUtil
-
public class StageCredentialUtil extends Object
A utility function to help with retrieving stage credentials and generating the credential string for Snowflake.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStageCredentialUtil.StageCredentialType
-
Constructor Summary
Constructors Constructor Description StageCredentialUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgenerateCredentialsString(String url, org.apache.hadoop.conf.Configuration config)Get the credentials for the given stage in the url, for example: credentials=(AWS_KEY_ID='{accessKey}' AWS_SECRET_KEY='{awsSecretKey}')
-
-
-
Method Detail
-
generateCredentialsString
public static String generateCredentialsString(String url, org.apache.hadoop.conf.Configuration config)
Get the credentials for the given stage in the url, for example: credentials=(AWS_KEY_ID='{accessKey}' AWS_SECRET_KEY='{awsSecretKey}')- Parameters:
url- The URLconfig- The Hadoop configuration- Returns:
- Snippet that represents credentials for the given location
- Throws:
UnsupportedOperationException- Thrown when the input is invalid
-
-