public class BrowserOktaSAMLCredentialsProvider extends Object implements INativePlugin
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
IAM_HTTP_URL_PATTERN |
protected static Pattern |
IAM_URL_PATTERN |
static String |
KEY_IDP_RESPONSE_TIMEOUT
String containing "idp_response_timeout" as a parameter key.
|
static String |
KEY_LISTEN_PORT
String containing "listen_port" as a parameter key.
|
static String |
KEY_LOGIN_URL
String containing "login_url" as a parameter key.
|
protected static String |
KEY_SSL_INSECURE |
protected Boolean |
m_disableCache |
protected RedshiftLogger |
m_log |
protected boolean |
m_sslInsecure |
| Constructor and Description |
|---|
BrowserOktaSAMLCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value) |
String |
getCacheKey() |
NativeTokenHolder |
getCredentials() |
protected CloseableHttpClient |
getHttpClient() |
String |
getIdpToken() |
String |
getPluginSpecificCacheKey() |
protected static String |
getRegexForJsonKey(String keyName) |
protected String |
getSamlAssertion() |
void |
refresh() |
void |
setLogger(RedshiftLogger log) |
protected void |
validateURL(String paramString) |
public static final String KEY_LOGIN_URL
public static final String KEY_IDP_RESPONSE_TIMEOUT
public static final String KEY_LISTEN_PORT
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 INativePluginpublic void setLogger(RedshiftLogger log)
setLogger in interface INativePluginpublic String getPluginSpecificCacheKey()
getPluginSpecificCacheKey in interface INativePluginpublic String getIdpToken() throws RedshiftException
getIdpToken in interface INativePluginRedshiftExceptionpublic String getCacheKey()
getCacheKey in interface INativePluginpublic NativeTokenHolder getCredentials() throws RedshiftException
getCredentials in interface INativePluginRedshiftExceptionpublic void refresh()
throws RedshiftException
refresh in interface INativePluginRedshiftExceptionprotected String getSamlAssertion() throws IOException
IOExceptionprotected CloseableHttpClient getHttpClient()
throws GeneralSecurityException
GeneralSecurityExceptionprotected void validateURL(String paramString) throws IOException
IOExceptionCopyright © 2024 Amazon.com Inc.. All rights reserved.