public class BasicJwtCredentialsProvider extends JwtCredentialsProvider
| 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 |
|---|
BasicJwtCredentialsProvider()
Optional default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value) |
protected CloseableHttpClient |
getHttpClient() |
protected String |
getJwtAssertion()
This method needs to return the JWT string returned by the specific JWT provider
being used for this implementation.
|
String |
getPluginSpecificCacheKey() |
protected static String |
getRegexForJsonKey(String keyName) |
protected void |
validateURL(String paramString) |
getCacheKey, getCredentials, getIdpToken, isNullOrEmpty, 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
public BasicJwtCredentialsProvider()
public String getPluginSpecificCacheKey()
getPluginSpecificCacheKey in interface INativePlugingetPluginSpecificCacheKey in class JwtCredentialsProviderpublic void addParameter(String key, String value)
addParameter in interface INativePluginaddParameter in class JwtCredentialsProviderprotected String getJwtAssertion() throws IOException
This will be used by the JwtCredentialsProvider parent class to get the temporary credentials.
getJwtAssertion in class JwtCredentialsProviderIOException - throws exception when required parameters are missing.protected CloseableHttpClient getHttpClient()
throws GeneralSecurityException
GeneralSecurityExceptionprotected void validateURL(String paramString) throws IOException
IOExceptionCopyright © 2024 Amazon.com Inc.. All rights reserved.