@InterfaceAudience.Private @InterfaceStability.Unstable public class STSClientFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
STSClientFactory.STSClient
STS client connection with retries.
|
| Constructor and Description |
|---|
STSClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
static com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder |
builder(com.amazonaws.auth.AWSCredentialsProvider credentials,
com.amazonaws.ClientConfiguration awsConf,
String stsEndpoint,
String stsRegion)
Create the builder ready for any final configuration options.
|
static com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder |
builder(org.apache.hadoop.conf.Configuration conf,
String bucket,
com.amazonaws.auth.AWSCredentialsProvider credentials)
Create the builder ready for any final configuration options.
|
static com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder |
builder(org.apache.hadoop.conf.Configuration conf,
String bucket,
com.amazonaws.auth.AWSCredentialsProvider credentials,
String stsEndpoint,
String stsRegion)
Create the builder ready for any final configuration options.
|
static STSClientFactory.STSClient |
createClientConnection(com.amazonaws.services.securitytoken.AWSSecurityTokenService tokenService,
Invoker invoker)
Create an STS Client instance.
|
public static com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder builder(org.apache.hadoop.conf.Configuration conf,
String bucket,
com.amazonaws.auth.AWSCredentialsProvider credentials)
throws IOException
DelegationConstants.DELEGATION_TOKEN_ENDPOINT
and
DelegationConstants.DELEGATION_TOKEN_REGIONconf - Configuration to act as source of options.bucket - Optional bucket to use to look up per-bucket proxy secretscredentials - AWS credential chain to usebuild()IOException - problem reading proxy secretspublic static com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder builder(org.apache.hadoop.conf.Configuration conf,
String bucket,
com.amazonaws.auth.AWSCredentialsProvider credentials,
String stsEndpoint,
String stsRegion)
throws IOException
conf - Configuration to act as source of options.bucket - Optional bucket to use to look up per-bucket proxy secretscredentials - AWS credential chain to usestsEndpoint - optional endpoint "https://sns.us-west-1.amazonaws.com"stsRegion - AWS recommend setting the endpoint instead.build()IOException - problem reading proxy secretspublic static com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClientBuilder builder(com.amazonaws.auth.AWSCredentialsProvider credentials,
com.amazonaws.ClientConfiguration awsConf,
String stsEndpoint,
String stsRegion)
awsConf - AWS configuration.credentials - AWS credential chain to usestsEndpoint - optional endpoint "https://sns.us-west-1.amazonaws.com"stsRegion - the region, e.g "us-west-1". Must be set if endpoint is.build()public static STSClientFactory.STSClient createClientConnection(com.amazonaws.services.securitytoken.AWSSecurityTokenService tokenService, Invoker invoker) throws IOException
tokenService - STS instanceinvoker - invoker to useIOException - on any failureCopyright © 2008–2022 Apache Software Foundation. All rights reserved.