public abstract class JwtCredentialsProvider extends Object implements INativePlugin
| 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 Boolean |
m_disableCache |
protected RedshiftLogger |
m_log |
protected boolean |
m_sslInsecure |
| Constructor and Description |
|---|
JwtCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value) |
String |
getCacheKey() |
NativeTokenHolder |
getCredentials() |
protected CloseableHttpClient |
getHttpClient() |
String |
getIdpToken() |
protected abstract String |
getJwtAssertion() |
String |
getPluginSpecificCacheKey() |
protected static String |
getRegexForJsonKey(String keyName) |
protected boolean |
isNullOrEmpty(String val) |
void |
refresh() |
void |
setLogger(RedshiftLogger log) |
protected void |
validateURL(String paramString) |
protected Boolean m_disableCache
protected 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
public void addParameter(String key, String value)
addParameter in interface INativePluginprotected boolean isNullOrEmpty(String val)
public void setLogger(RedshiftLogger log)
setLogger in interface INativePluginpublic NativeTokenHolder getCredentials() throws RedshiftException
getCredentials in interface INativePluginRedshiftExceptionprotected abstract String getJwtAssertion() throws IOException
IOExceptionpublic void refresh()
throws RedshiftException
refresh in interface INativePluginRedshiftExceptionpublic String getPluginSpecificCacheKey()
getPluginSpecificCacheKey in interface INativePluginpublic String getIdpToken() throws RedshiftException
getIdpToken in interface INativePluginRedshiftExceptionpublic String getCacheKey()
getCacheKey in interface INativePluginprotected CloseableHttpClient getHttpClient()
throws GeneralSecurityException
GeneralSecurityExceptionprotected void validateURL(String paramString) throws IOException
IOExceptionCopyright © 2024 Amazon.com Inc.. All rights reserved.