@InterfaceAudience.Public @InterfaceStability.Stable public class TemporaryAWSCredentialsProvider extends AbstractSessionCredentialsProvider
AbstractSessionCredentialsProvider.NoCredentials| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT |
static String |
NAME |
| Constructor and Description |
|---|
TemporaryAWSCredentialsProvider(org.apache.hadoop.conf.Configuration conf)
Construct from just a configuration.
|
TemporaryAWSCredentialsProvider(URI uri,
org.apache.hadoop.conf.Configuration conf)
Constructor: the URI will be null if the provider is inited unbonded
to a filesystem.
|
| Modifier and Type | Method and Description |
|---|---|
protected software.amazon.awssdk.auth.credentials.AwsCredentials |
createCredentials(org.apache.hadoop.conf.Configuration config)
The credentials here must include a session token, else this operation
will raise an exception.
|
getInitializationException, hasCredentials, init, isInitialized, resolveCredentials, toStringgetConf, getUriclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String NAME
public static final String COMPONENT
public TemporaryAWSCredentialsProvider(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - configuration.IOException - on any failure to load the credentials.public TemporaryAWSCredentialsProvider(@Nullable URI uri, org.apache.hadoop.conf.Configuration conf) throws IOException
uri - binding to a filesystem URI.conf - configuration.IOException - on any failure to load the credentials.protected software.amazon.awssdk.auth.credentials.AwsCredentials createCredentials(org.apache.hadoop.conf.Configuration config)
throws IOException
createCredentials in class AbstractSessionCredentialsProviderconfig - the configurationIOException - on any failure to load the credentials.NoAuthWithAWSException - validation failureNoAwsCredentialsException - the credentials are actually empty.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.