public abstract class SamlCredentialsProvider extends Object implements IPlugin
| Modifier and Type | Field and Description |
|---|---|
protected static String |
KEY_IDP_HOST |
protected Boolean |
m_autoCreate |
protected String |
m_dbGroups |
protected String |
m_dbGroupsFilter |
protected String |
m_dbUser |
protected Boolean |
m_disableCache |
protected int |
m_duration |
protected Boolean |
m_forceLowercase |
protected String |
m_idpHost |
protected int |
m_idpPort |
protected RedshiftLogger |
m_log |
protected String |
m_password |
protected String |
m_preferredRole |
protected String |
m_region |
protected boolean |
m_sslInsecure |
protected String |
m_stsEndpoint |
protected String |
m_userName |
| Constructor and Description |
|---|
SamlCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value) |
protected void |
checkRequiredParameters() |
protected String |
escapeHtmlEntity(String html)
Escape certain HTML entities for the given input string.
|
CredentialsHolder |
getCredentials() |
protected String |
getFormAction(String body) |
protected CloseableHttpClient |
getHttpClient() |
protected List<String> |
getInputTagsfromHTML(String body) |
String |
getPluginSpecificCacheKey() |
protected abstract String |
getSamlAssertion() |
protected String |
getValueByKey(String input,
String key) |
protected boolean |
isPassword(String inputTag) |
protected boolean |
isText(String inputTag) |
void |
refresh() |
void |
setLogger(RedshiftLogger log) |
protected static final String KEY_IDP_HOST
protected String m_userName
protected String m_password
protected String m_idpHost
protected int m_idpPort
protected int m_duration
protected String m_preferredRole
protected boolean m_sslInsecure
protected String m_dbUser
protected String m_dbGroups
protected String m_dbGroupsFilter
protected Boolean m_forceLowercase
protected Boolean m_autoCreate
protected String m_stsEndpoint
protected String m_region
protected RedshiftLogger m_log
protected Boolean m_disableCache
protected abstract String getSamlAssertion() throws IOException
IOExceptionpublic void addParameter(String key, String value)
addParameter in interface IPluginpublic void setLogger(RedshiftLogger log)
public CredentialsHolder getCredentials()
public void refresh()
public String getPluginSpecificCacheKey()
getPluginSpecificCacheKey in interface IPluginprotected CloseableHttpClient getHttpClient()
throws GeneralSecurityException
GeneralSecurityExceptionprotected String escapeHtmlEntity(String html)
html - The string to escape.protected void checkRequiredParameters()
throws IOException
IOExceptionprotected boolean isText(String inputTag)
protected boolean isPassword(String inputTag)
Copyright © 2021 Amazon.com Inc.. All rights reserved.