public abstract class WebIdentityClientGrantsProvider extends AssumeRoleBaseProvider
AssumeRoleBaseProvider.Response
Modifier and Type | Field and Description |
---|---|
protected Integer |
durationSeconds |
static int |
MAX_DURATION_SECONDS |
static int |
MIN_DURATION_SECONDS |
protected String |
policy |
protected String |
roleArn |
protected String |
roleSessionName |
protected okhttp3.HttpUrl |
stsEndpoint |
DEFAULT_DURATION_SECONDS
Constructor and Description |
---|
WebIdentityClientGrantsProvider(Supplier<Jwt> supplier,
String stsEndpoint,
Integer durationSeconds,
String policy,
String roleArn,
String roleSessionName,
okhttp3.OkHttpClient customHttpClient) |
Modifier and Type | Method and Description |
---|---|
protected int |
getDurationSeconds(int expiry) |
protected okhttp3.Request |
getRequest() |
protected abstract okhttp3.HttpUrl.Builder |
newUrlBuilder(Jwt jwt) |
fetch, getResponseClass, getValidDurationSeconds, newUrlBuilder, parseResponse
public static final int MIN_DURATION_SECONDS
public static final int MAX_DURATION_SECONDS
protected final okhttp3.HttpUrl stsEndpoint
protected final Integer durationSeconds
protected final String policy
protected final String roleArn
protected final String roleSessionName
public WebIdentityClientGrantsProvider(@Nonnull Supplier<Jwt> supplier, @Nonnull String stsEndpoint, @Nullable Integer durationSeconds, @Nullable String policy, @Nullable String roleArn, @Nullable String roleSessionName, @Nullable okhttp3.OkHttpClient customHttpClient)
protected int getDurationSeconds(int expiry)
protected okhttp3.Request getRequest()
getRequest
in class AssumeRoleBaseProvider
protected abstract okhttp3.HttpUrl.Builder newUrlBuilder(Jwt jwt)