public abstract class AssumeRoleBaseProvider extends Object implements Provider
| Modifier and Type | Class and Description |
|---|---|
static interface |
AssumeRoleBaseProvider.Response |
| Constructor and Description |
|---|
AssumeRoleBaseProvider(okhttp3.OkHttpClient customHttpClient) |
| 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 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 Credentials fetch()
ProviderCredentials instance by retrieving from credential provider service if
neccessary.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
XmlParserExceptionIOExceptionprotected abstract okhttp3.Request getRequest()
protected abstract Class<? extends AssumeRoleBaseProvider.Response> getResponseClass()