@InterfaceAudience.Public @InterfaceStability.Evolving public final class AssumedRoleCredentialProvider extends Object implements software.amazon.awssdk.auth.credentials.AwsCredentialsProvider, Closeable
STSAssumeRoleSessionCredentialsProvider
from configuration
properties, including wiring up the inner authenticator, and,
unless overridden, creating a session name from the current user.
Classname is used in configuration files; do not move.Modifier and Type | Field and Description |
---|---|
static String |
E_NO_ROLE |
static String |
NAME |
Constructor and Description |
---|
AssumedRoleCredentialProvider(URI fsUri,
org.apache.hadoop.conf.Configuration conf)
Instantiate.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Propagate the close() call to the inner stsProvider.
|
void |
operationRetried(String text,
Exception ex,
int retries,
boolean idempotent)
Callback from
Invoker when an operation is retried. |
software.amazon.awssdk.auth.credentials.AwsCredentials |
resolveCredentials()
Get credentials.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final String NAME
public static final String E_NO_ROLE
public AssumedRoleCredentialProvider(@Nullable URI fsUri, org.apache.hadoop.conf.Configuration conf) throws IOException
resolveCredentials()
to fail fast on the inner
role credential retrieval.fsUri
- possibly null URI of the filesystem.conf
- configurationIOException
- on IO problems and some parameter checkingIllegalArgumentException
- invalid parameterssoftware.amazon.awssdk.services.sts.model.StsException
- problems getting credentials@Retries.RetryRaw public software.amazon.awssdk.auth.credentials.AwsCredentials resolveCredentials()
resolveCredentials
in interface software.amazon.awssdk.auth.credentials.AwsCredentialsProvider
software.amazon.awssdk.services.sts.model.StsException
- if none could be obtained.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.