Package org.apache.iceberg.aws.s3.signer
Class S3V4RestSignerClient
java.lang.Object
software.amazon.awssdk.auth.signer.internal.AbstractAwsSigner
software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
org.apache.iceberg.aws.s3.signer.S3V4RestSignerClient
- All Implemented Interfaces:
software.amazon.awssdk.core.signer.Presigner
,software.amazon.awssdk.core.signer.Signer
@Immutable
public abstract class S3V4RestSignerClient
extends software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
-
Field Summary
Fields inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
EMPTY_STRING_SHA256_HEX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
calculateContentHashPresign
(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest, software.amazon.awssdk.auth.signer.params.Aws4PresignerParams signerParams) protected void
check()
static S3V4RestSignerClient
A credential to exchange for a token in the OAuth2 client credentials flow.endpoint()
Token endpoint URI to fetch token from if the Rest Catalog is not the authorization server.software.amazon.awssdk.http.SdkHttpFullRequest
presign
(software.amazon.awssdk.http.SdkHttpFullRequest request, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) protected void
processRequestPayload
(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, software.amazon.awssdk.auth.signer.internal.Aws4SignerRequestParams signerRequestParams, software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams signerParams) protected void
processRequestPayload
(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, software.amazon.awssdk.auth.signer.internal.Aws4SignerRequestParams signerRequestParams, software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams signerParams, software.amazon.awssdk.core.checksums.SdkChecksum sdkChecksum) software.amazon.awssdk.http.SdkHttpFullRequest
sign
(software.amazon.awssdk.http.SdkHttpFullRequest request, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) token()
A Bearer token supplier which will be used for interaction with the server.Methods inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer
addSessionCredentials, calculateContentHash, calculateContentHash, deriveSigningKey, deriveSigningKey, doPresign, doSign, doSign, extractPresignerParams, extractSignerParams
Methods inherited from class software.amazon.awssdk.auth.signer.internal.AbstractAwsSigner
getBinaryRequestPayloadStream, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMac
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.core.signer.Signer
credentialType
-
Field Details
-
S3_SIGNER_URI
- See Also:
-
S3_SIGNER_ENDPOINT
- See Also:
-
-
Constructor Details
-
S3V4RestSignerClient
public S3V4RestSignerClient()
-
-
Method Details
-
properties
-
requestPropertiesSupplier
-
baseSignerUri
-
endpoint
-
credential
A credential to exchange for a token in the OAuth2 client credentials flow. -
oauth2ServerUri
Token endpoint URI to fetch token from if the Rest Catalog is not the authorization server. -
optionalOAuthParams
-
token
A Bearer token supplier which will be used for interaction with the server. -
check
@Check protected void check() -
processRequestPayload
protected void processRequestPayload(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, software.amazon.awssdk.auth.signer.internal.Aws4SignerRequestParams signerRequestParams, software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams signerParams) - Specified by:
processRequestPayload
in classsoftware.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,
software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
-
processRequestPayload
protected void processRequestPayload(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest, byte[] signature, byte[] signingKey, software.amazon.awssdk.auth.signer.internal.Aws4SignerRequestParams signerRequestParams, software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams signerParams, software.amazon.awssdk.core.checksums.SdkChecksum sdkChecksum) - Specified by:
processRequestPayload
in classsoftware.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,
software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
-
calculateContentHashPresign
protected String calculateContentHashPresign(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest, software.amazon.awssdk.auth.signer.params.Aws4PresignerParams signerParams) - Specified by:
calculateContentHashPresign
in classsoftware.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,
software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
-
presign
public software.amazon.awssdk.http.SdkHttpFullRequest presign(software.amazon.awssdk.http.SdkHttpFullRequest request, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) -
sign
public software.amazon.awssdk.http.SdkHttpFullRequest sign(software.amazon.awssdk.http.SdkHttpFullRequest request, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) -
create
-