public enum CredsProvider extends Enum<CredsProvider>
| Enum Constant and Description |
|---|
CONFIG |
CONTAINER |
ENVIRONMENT |
PROFILE |
STS_ROLE |
STS_ROLE_PROXY |
STS_SESSION |
STS_SESSION_PROXY |
SYSTEM_PROPERTIES |
| Modifier and Type | Method and Description |
|---|---|
static com.amazonaws.auth.AWSCredentialsProvider |
getProvider(AwsConfig config) |
static CredsProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CredsProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CredsProvider CONFIG
public static final CredsProvider ENVIRONMENT
public static final CredsProvider SYSTEM_PROPERTIES
public static final CredsProvider PROFILE
public static final CredsProvider CONTAINER
public static final CredsProvider STS_ROLE
public static final CredsProvider STS_ROLE_PROXY
public static final CredsProvider STS_SESSION
public static final CredsProvider STS_SESSION_PROXY
public static CredsProvider[] values()
for (CredsProvider c : CredsProvider.values()) System.out.println(c);
public static CredsProvider valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static com.amazonaws.auth.AWSCredentialsProvider getProvider(AwsConfig config)
Copyright © 2012–2017 Polyglotted Limited. All rights reserved.