public class IdpTokenAuthPlugin extends CommonCredentialsProvider
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
IAM_HTTP_URL_PATTERN |
protected static Pattern |
IAM_URL_PATTERN |
protected static String |
KEY_SSL_INSECURE |
protected RedshiftLogger |
m_log |
protected boolean |
m_sslInsecure |
m_disableCache| Constructor and Description |
|---|
IdpTokenAuthPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value) |
protected NativeTokenHolder |
getAuthToken()
This overridden method needs to return the auth token provided by the client
|
protected CloseableHttpClient |
getHttpClient() |
protected static String |
getRegexForJsonKey(String keyName) |
boolean |
isUsingIdentityEnhancedCredentials()
Check if this plugin is using identity-enhanced credentials (IAM credentials with IdC context)
Note that this function is not actually checking to see if the credentials themselves are
identity enhanced, it is just checking to see if they have the necessary parameters of
access key, secret access key, and session token provided
|
protected void |
validateURL(String paramString) |
getCacheKey, getCredentials, getIdpToken, getPluginSpecificCacheKey, refresh, setLoggerprotected static final String KEY_SSL_INSECURE
protected boolean m_sslInsecure
protected static final Pattern IAM_URL_PATTERN
protected static final Pattern IAM_HTTP_URL_PATTERN
protected RedshiftLogger m_log
protected NativeTokenHolder getAuthToken() throws IOException
getAuthToken in class CommonCredentialsProviderNativeTokenHolder A wrapper containing auth token and its expiration time informationIOException - indicating that some required parameter is missing.public void addParameter(String key, String value)
addParameter in interface INativePluginaddParameter in class CommonCredentialsProviderpublic boolean isUsingIdentityEnhancedCredentials()
protected CloseableHttpClient getHttpClient()
throws GeneralSecurityException
GeneralSecurityExceptionprotected void validateURL(String paramString) throws IOException
IOExceptionCopyright © 2026 Amazon.com Inc.. All rights reserved.