public abstract class AssumeRoleBaseProvider extends Object implements Provider
Modifier and Type | Class and Description |
---|---|
static interface |
AssumeRoleBaseProvider.Response |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DURATION_SECONDS |
Constructor and Description |
---|
AssumeRoleBaseProvider(okhttp3.OkHttpClient customHttpClient) |
AssumeRoleBaseProvider(okhttp3.OkHttpClient customHttpClient,
SSLSocketFactory sslSocketFactory,
X509TrustManager trustManager) |
Modifier and Type | Method and Description |
---|---|
Credentials |
fetch()
Returns a valid
Credentials instance by retrieving from credential provider service if
neccessary. |
protected abstract okhttp3.Request |
getRequest() |
protected abstract Class<? extends AssumeRoleBaseProvider.Response> |
getResponseClass() |
protected static int |
getValidDurationSeconds(Integer duration) |
protected okhttp3.HttpUrl.Builder |
newUrlBuilder(okhttp3.HttpUrl url,
String action,
int durationSeconds,
String policy,
String roleArn,
String roleSessionName) |
protected Credentials |
parseResponse(okhttp3.Response response) |
public AssumeRoleBaseProvider(okhttp3.OkHttpClient customHttpClient)
public AssumeRoleBaseProvider(okhttp3.OkHttpClient customHttpClient, SSLSocketFactory sslSocketFactory, X509TrustManager trustManager) throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public Credentials fetch()
Provider
Credentials
instance by retrieving from credential provider service if
neccessary.protected static int getValidDurationSeconds(Integer duration)
protected okhttp3.HttpUrl.Builder newUrlBuilder(okhttp3.HttpUrl url, String action, int durationSeconds, String policy, String roleArn, String roleSessionName)
protected Credentials parseResponse(okhttp3.Response response) throws XmlParserException, IOException
XmlParserException
IOException
protected abstract okhttp3.Request getRequest()
protected abstract Class<? extends AssumeRoleBaseProvider.Response> getResponseClass()