public class BrowserAzureOAuth2CredentialsProvider extends JwtCredentialsProvider
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
IAM_HTTP_URL_PATTERN |
protected static Pattern |
IAM_URL_PATTERN |
static String |
KEY_CLIENT_ID
Key for setting client ID.
|
static String |
KEY_IDP_RESPONSE_TIMEOUT
Key for setting timeout for IDP response.
|
static String |
KEY_IDP_TENANT
Key for setting idp tenant.
|
static String |
KEY_LISTEN_PORT
Key for setting the port number for listening.
|
static String |
KEY_SCOPE
Key for setting Scope.
|
protected static String |
KEY_SSL_INSECURE |
protected RedshiftLogger |
m_log |
protected boolean |
m_sslInsecure |
static String |
OAUTH_CLIENT_ID_PARAMETER_NAME
Key for setting client ID.
|
static String |
OAUTH_GRANT_TYPE_PARAMETER_NAME
Key for setting grant type.
|
static String |
OAUTH_IDP_CODE_PARAMETER_NAME
Key for setting code.
|
static String |
OAUTH_REDIRECT_PARAMETER_NAME
Key for setting redirect URI.
|
static String |
OAUTH_REQUESTED_TOKEN_TYPE_PARAMETER_NAME
Key for setting requested token type.
|
static String |
OAUTH_RESOURCE_PARAMETER_NAME
Key for setting resource.
|
static String |
OAUTH_RESPONSE_MODE_PARAMETER_NAME
Key for setting response mode.
|
static String |
OAUTH_RESPONSE_TYPE_PARAMETER_NAME
Key for setting OAUTH response type.
|
static String |
OAUTH_SCOPE_PARAMETER_NAME
Key for setting scope.
|
static String |
OAUTH_STATE_PARAMETER_NAME
Key for setting state.
|
m_disableCache| Constructor and Description |
|---|
BrowserAzureOAuth2CredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
String value)
Overwritten method to grab the field parameters from JDBC connection string.
|
protected CloseableHttpClient |
getHttpClient() |
protected String |
getJwtAssertion()
Overridden method to grab the JWT Response.
|
String |
getPluginSpecificCacheKey() |
protected static String |
getRegexForJsonKey(String keyName) |
protected void |
validateURL(String paramString) |
getCacheKey, getCredentials, getIdpToken, isNullOrEmpty, refresh, setLoggerpublic static final String KEY_IDP_RESPONSE_TIMEOUT
public static final String KEY_LISTEN_PORT
public static final String KEY_IDP_TENANT
public static final String KEY_CLIENT_ID
public static final String KEY_SCOPE
public static final String OAUTH_STATE_PARAMETER_NAME
public static final String OAUTH_REDIRECT_PARAMETER_NAME
public static final String OAUTH_IDP_CODE_PARAMETER_NAME
public static final String OAUTH_CLIENT_ID_PARAMETER_NAME
public static final String OAUTH_RESPONSE_TYPE_PARAMETER_NAME
public static final String OAUTH_REQUESTED_TOKEN_TYPE_PARAMETER_NAME
public static final String OAUTH_GRANT_TYPE_PARAMETER_NAME
public static final String OAUTH_SCOPE_PARAMETER_NAME
public static final String OAUTH_RESOURCE_PARAMETER_NAME
public static final String OAUTH_RESPONSE_MODE_PARAMETER_NAME
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 BrowserAzureOAuth2CredentialsProvider()
protected String getJwtAssertion() throws IOException
getJwtAssertion in class JwtCredentialsProviderIOException - indicating the errorpublic void addParameter(String key, String value)
addParameter in interface INativePluginaddParameter in class JwtCredentialsProviderkey - parameter key passed to JDBCvalue - parameter value associated with the given keypublic String getPluginSpecificCacheKey()
getPluginSpecificCacheKey in interface INativePlugingetPluginSpecificCacheKey in class JwtCredentialsProviderprotected CloseableHttpClient getHttpClient()
throws GeneralSecurityException
GeneralSecurityExceptionprotected void validateURL(String paramString) throws IOException
IOExceptionCopyright © 2024 Amazon.com Inc.. All rights reserved.