-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CLOUD_PROVIDER_TOKEN secret type for Java Udx
- Loading branch information
Shawn Yang
committed
Jul 16, 2024
1 parent
ef78860
commit a128974
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/main/java/com/snowflake/snowpark_java/types/CloudProviderToken.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.snowflake.snowpark_java.types; | ||
|
||
/** Custom Snowflake class that provides access to accessKeyId & secretAccessKey & token secret object. */ | ||
public class CloudProviderToken { | ||
private final String accessKeyId; | ||
private final String secretAccessKey; | ||
private final String token; | ||
|
||
public CloudProviderToken(String id, String key, String token) { | ||
this.accessKeyId = id; | ||
this.secretAccessKey = key; | ||
this.token = token; | ||
} | ||
|
||
public String getAccessKeyId() { | ||
return accessKeyId; | ||
} | ||
|
||
public String getSecretAccessKey() { | ||
return secretAccessKey; | ||
} | ||
|
||
public String getToken() { | ||
return token; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters