@Value.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>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
S3_SIGNER_ENDPOINT |
static java.lang.String |
S3_SIGNER_URI |
Constructor and Description |
---|
S3V4RestSignerClient() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
baseSignerUri() |
protected java.lang.String |
calculateContentHashPresign(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest,
software.amazon.awssdk.auth.signer.params.Aws4PresignerParams signerParams) |
protected void |
check() |
static S3V4RestSignerClient |
create(java.util.Map<java.lang.String,java.lang.String> properties) |
java.lang.String |
credential()
A credential to exchange for a token in the OAuth2 client credentials flow.
|
java.lang.String |
endpoint() |
java.lang.String |
oauth2ServerUri()
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) |
abstract java.util.Map<java.lang.String,java.lang.String> |
properties() |
java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.String>> |
requestPropertiesSupplier() |
software.amazon.awssdk.http.SdkHttpFullRequest |
sign(software.amazon.awssdk.http.SdkHttpFullRequest request,
software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes) |
java.util.function.Supplier<java.lang.String> |
token()
A Bearer token supplier which will be used for interaction with the server.
|
addSessionCredentials, calculateContentHash, calculateContentHash, deriveSigningKey, deriveSigningKey, doPresign, doSign, doSign, extractPresignerParams, extractSignerParams
getBinaryRequestPayloadStream, sanitizeCredentials, sign, sign, signAndBase64Encode, signWithMac
public static final java.lang.String S3_SIGNER_URI
public static final java.lang.String S3_SIGNER_ENDPOINT
public abstract java.util.Map<java.lang.String,java.lang.String> properties()
@Value.Default public java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.String>> requestPropertiesSupplier()
@Value.Lazy public java.lang.String baseSignerUri()
@Value.Lazy public java.lang.String endpoint()
@Nullable @Value.Lazy public java.lang.String credential()
@Value.Lazy public java.lang.String oauth2ServerUri()
@Value.Default public java.util.function.Supplier<java.lang.String> token()
@Value.Check protected void check()
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)
processRequestPayload
in class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
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)
processRequestPayload
in class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
protected java.lang.String calculateContentHashPresign(software.amazon.awssdk.http.SdkHttpFullRequest.Builder mutableRequest, software.amazon.awssdk.auth.signer.params.Aws4PresignerParams signerParams)
calculateContentHashPresign
in class software.amazon.awssdk.auth.signer.internal.AbstractAws4Signer<software.amazon.awssdk.auth.signer.params.AwsS3V4SignerParams,software.amazon.awssdk.auth.signer.params.Aws4PresignerParams>
public software.amazon.awssdk.http.SdkHttpFullRequest presign(software.amazon.awssdk.http.SdkHttpFullRequest request, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
public software.amazon.awssdk.http.SdkHttpFullRequest sign(software.amazon.awssdk.http.SdkHttpFullRequest request, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
public static S3V4RestSignerClient create(java.util.Map<java.lang.String,java.lang.String> properties)