public final class AwsRequestSigningApacheV5Interceptor extends Object implements org.apache.hc.core5.http.HttpRequestInterceptor
HttpRequestInterceptor that signs requests for any AWS service
running in a specific region using an AWS Signer and
AwsCredentialsProvider.| Constructor and Description |
|---|
AwsRequestSigningApacheV5Interceptor(String service,
software.amazon.awssdk.core.signer.Signer signer,
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider,
software.amazon.awssdk.regions.Region region)
Creates an
AwsRequestSigningApacheInterceptor with the
ability to sign request for a specific service in a region and
defined credentials. |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.protocol.HttpContext context) |
public AwsRequestSigningApacheV5Interceptor(String service, software.amazon.awssdk.core.signer.Signer signer, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider, software.amazon.awssdk.regions.Region region)
AwsRequestSigningApacheInterceptor with the
ability to sign request for a specific service in a region and
defined credentials.service - service the client is connecting tosigner - signer implementation.awsCredentialsProvider - source of AWS credentials for signingregion - signing regionpublic void process(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.protocol.HttpContext context)
throws org.apache.hc.core5.http.HttpException,
IOException
process in interface org.apache.hc.core5.http.HttpRequestInterceptororg.apache.hc.core5.http.HttpExceptionIOExceptionCopyright © 2023. All rights reserved.