public abstract class AwsCredentials
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AwsCredentials.BasicAwsCredentials |
static class |
AwsCredentials.DefaultAwsCredentials |
static class |
AwsCredentials.ProfileAwsCredentials |
Modifier and Type | Method and Description |
---|---|
AwsCredentials.BasicAwsCredentials |
asBasic()
Returns this as a
AwsCredentials.BasicAwsCredentials . |
AwsCredentials.ProfileAwsCredentials |
asProfile()
Returns this as a
AwsCredentials.ProfileAwsCredentials . |
static AwsCredentials |
basic(java.lang.String accessKeyId,
java.lang.String secretAccessKey)
Specifies the AWS credentials directly with provided access key ID and secret access key
strings.
|
static AwsCredentials |
fromDefaultProviderChain()
Consults AWS's default provider chain to determine the AWS credentials.
|
boolean |
isBasic()
Checks whether the credentials is specified using directly provided access key ID and secret
access key strings.
|
boolean |
isDefault()
Checks whether the credentials is configured to be obtained from AWS's default provider chain.
|
boolean |
isProfile()
Checks whether the credentials is configured using AWS configuration profiles.
|
static AwsCredentials |
profile(java.lang.String profileName)
Specifies the AWS credentials using an AWS configuration profile.
|
static AwsCredentials |
profile(java.lang.String profileName,
java.lang.String profilePath)
Specifies the AWS credentials using an AWS configuration profile, along with the profile's
configuration path.
|
public static AwsCredentials fromDefaultProviderChain()
public static AwsCredentials basic(java.lang.String accessKeyId, java.lang.String secretAccessKey)
public static AwsCredentials profile(java.lang.String profileName)
public static AwsCredentials profile(java.lang.String profileName, java.lang.String profilePath)
public boolean isDefault()
public boolean isBasic()
public boolean isProfile()
public AwsCredentials.BasicAwsCredentials asBasic()
AwsCredentials.BasicAwsCredentials
.public AwsCredentials.ProfileAwsCredentials asProfile()
AwsCredentials.ProfileAwsCredentials
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.