@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 com.amazonaws.auth.AWSCredentials |
createCredentials(org.apache.hadoop.conf.Configuration config)
The credentials here must include a session token, else this operation
will raise an exception.
|
getCredentials, getInitializationException, hasCredentials, init, isInitialized, toStringgetConf, getUri, refreshpublic 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 com.amazonaws.auth.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–2022 Apache Software Foundation. All rights reserved.