public class SigV4AuthProvider extends Object implements com.datastax.oss.driver.api.core.auth.AuthProvider
| Modifier and Type | Class and Description |
|---|---|
class |
SigV4AuthProvider.SigV4Authenticator
This authenticator performs SigV4 MCS authentication.
|
| Constructor and Description |
|---|
SigV4AuthProvider()
Create a new Provider, using the
DefaultAWSCredentialsProviderChain as its credentials provider.
|
SigV4AuthProvider(@NotNull software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider,
String region)
Create a new Provider, using the specified AWSCredentialsProvider and region.
|
SigV4AuthProvider(com.datastax.oss.driver.api.core.context.DriverContext driverContext)
This constructor is provided so that the driver can create
instances of this class based on configuration.
|
SigV4AuthProvider(String region)
Create a new Provider, using the specified region.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.datastax.oss.driver.api.core.auth.Authenticator |
newAuthenticator(com.datastax.oss.driver.api.core.metadata.EndPoint endPoint,
String authenticator) |
void |
onMissingChallenge(com.datastax.oss.driver.api.core.metadata.EndPoint endPoint) |
public SigV4AuthProvider()
public SigV4AuthProvider(com.datastax.oss.driver.api.core.context.DriverContext driverContext)
datastax-java-driver.advanced.auth-provider = {
aws-region = us-east-2
class = software.aws.mcs.auth.SigV4AuthProvider
}
The signing region is taken from the
datastax-java-driver.advanced.auth-provider.aws-region
property, from the "aws.region" system property, or the
AWS_DEFAULT_REGION environment variable, in that order of
preference.
For programmatic construction, use SigV4AuthProvider()
or SigV4AuthProvider(AwsCredentialsProvider, String).driverContext - the driver context for instance creation.
Unused for this plugin.public SigV4AuthProvider(String region)
region - the region (e.g. us-east-1) to use for signing. A
null value indicates to use the AWS_REGION environment
variable, or the "aws.region" system property to configure it.public SigV4AuthProvider(@NotNull
@NotNull software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider,
String region)
credentialsProvider - the credentials provider used to obtain signature materialregion - the region (e.g. us-east-1) to use for signing. A
null value indicates to use the AWS_REGION environment
variable, or the "aws.region" system property to configure it.public com.datastax.oss.driver.api.core.auth.Authenticator newAuthenticator(com.datastax.oss.driver.api.core.metadata.EndPoint endPoint,
String authenticator)
throws com.datastax.oss.driver.api.core.auth.AuthenticationException
newAuthenticator in interface com.datastax.oss.driver.api.core.auth.AuthProvidercom.datastax.oss.driver.api.core.auth.AuthenticationExceptionpublic void onMissingChallenge(com.datastax.oss.driver.api.core.metadata.EndPoint endPoint)
onMissingChallenge in interface com.datastax.oss.driver.api.core.auth.AuthProviderpublic void close()
close in interface AutoCloseableCopyright © 2020–2023 Amazon Web Services. All rights reserved.