public class AwsCredentialsManager
extends java.lang.Object
| Constructor and Description |
|---|
AwsCredentialsManager() |
| Modifier and Type | Method and Description |
|---|---|
static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getProvider(HostSpec hostSpec,
java.util.Properties props) |
static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
getProvider(HostSpec hostSpec,
java.util.Properties props,
@Nullable software.amazon.awssdk.regions.Region region)
Resolves an
AwsCredentialsProvider for the given connection, optionally scoping the
AWS Sign-In (login_session) credential flow to the provided region. |
static void |
resetCustomHandler() |
static void |
setCustomHandler(@Nullable AwsCredentialsProviderHandler customHandler) |
public static void setCustomHandler(@Nullable AwsCredentialsProviderHandler customHandler)
public static void resetCustomHandler()
public static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getProvider(HostSpec hostSpec, java.util.Properties props)
public static software.amazon.awssdk.auth.credentials.AwsCredentialsProvider getProvider(HostSpec hostSpec, java.util.Properties props, @Nullable software.amazon.awssdk.regions.Region region)
AwsCredentialsProvider for the given connection, optionally scoping the
AWS Sign-In (login_session) credential flow to the provided region.hostSpec - the host being connected to.props - the connection properties.region - the region already resolved for the connection. Used to scope the login/signin
exchange when allowAwsLoginSession=true and the configured profile
authenticates via a login_session entry. May be null when no region has
been resolved yet.