public abstract class JwtCredentialsProvider extends Object implements IPlugin
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_dbUser |
protected Boolean |
m_disableCache |
protected int |
m_duration |
protected Boolean |
m_groupFederation |
protected String |
m_jwt |
protected RedshiftLogger |
m_log |
protected String |
m_region |
protected String |
m_roleArn |
protected String |
m_roleSessionName |
protected String |
m_stsEndpoint |
| Constructor and Description |
|---|
JwtCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value) |
protected void |
checkRequiredParameters() |
protected String[] |
decodeJwt(String jwt) |
protected String |
deriveDatabaseUser(String[] decodedJwt) |
String |
getCacheKey() |
CredentialsHolder |
getCredentials() |
String |
getIdpToken() |
String |
getPluginSpecificCacheKey() |
int |
getSubType() |
protected abstract String |
processJwt(String jwt) |
void |
refresh() |
void |
setGroupFederation(boolean groupFederation) |
void |
setLogger(RedshiftLogger log) |
protected String m_roleArn
protected String m_jwt
protected String m_roleSessionName
protected int m_duration
protected String m_dbUser
protected String m_stsEndpoint
protected String m_region
protected RedshiftLogger m_log
protected Boolean m_disableCache
protected Boolean m_groupFederation
protected abstract String processJwt(String jwt) throws IOException
IOExceptionpublic void addParameter(String key, String value)
addParameter in interface IPluginpublic void setLogger(RedshiftLogger log)
public int getSubType()
getSubType in interface IPluginpublic CredentialsHolder getCredentials()
public void refresh()
public String getPluginSpecificCacheKey()
getPluginSpecificCacheKey in interface IPluginpublic String getIdpToken()
getIdpToken in interface IPluginpublic void setGroupFederation(boolean groupFederation)
setGroupFederation in interface IPluginpublic String getCacheKey()
getCacheKey in interface IPluginprotected void checkRequiredParameters()
throws IOException
IOExceptionCopyright © 2021 Amazon.com Inc.. All rights reserved.