public abstract class BaseIdentityProvider extends Object implements Provider
LdapIdentityProvider, CertificateIdentityProvider, WebIdentityClientGrantsProvider and AssumeRoleProvider.| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseIdentityProvider.Response
Response to get credentials of
BaseIdentityProvider. |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_DURATION_SECONDS |
| Constructor and Description |
|---|
BaseIdentityProvider(okhttp3.OkHttpClient customHttpClient) |
BaseIdentityProvider(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
necessary. |
protected abstract okhttp3.Request |
getRequest() |
protected abstract Class<? extends BaseIdentityProvider.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 BaseIdentityProvider(okhttp3.OkHttpClient customHttpClient)
public BaseIdentityProvider(okhttp3.OkHttpClient customHttpClient,
SSLSocketFactory sslSocketFactory,
X509TrustManager trustManager)
throws MinioException
MinioExceptionpublic Credentials fetch()
ProviderCredentials instance by retrieving from credential provider service if
necessary.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
XmlParserExceptionIOExceptionprotected abstract okhttp3.Request getRequest()
protected abstract Class<? extends BaseIdentityProvider.Response> getResponseClass()