Interface WebhookHmacAuthConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WebhookHmacAuthConfiguration.Builder,,WebhookHmacAuthConfiguration> SdkBuilder<WebhookHmacAuthConfiguration.Builder,,WebhookHmacAuthConfiguration> SdkPojo
- Enclosing class:
WebhookHmacAuthConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe hash algorithm the provider uses to compute the signature.algorithm(WebhookHmacAlgorithm algorithm) The hash algorithm the provider uses to compute the signature.The separator between parts of the signature header value, for example a comma for a header value of t=1727816400,v1=<signature>, or a space when the header carries several signatures.How the provider encodes the signature in the header.encoding(WebhookHmacEncoding encoding) How the provider encodes the signature in the header.messageIdHttpHeader(String messageIdHttpHeader) The name of the header that carries the message ID.secretEncoding(String secretEncoding) How the secret is encoded.secretEncoding(WebhookSecretEncoding secretEncoding) How the secret is encoded.secretValue(String secretValue) The signing key shared with the provider.signatureHttpHeader(String signatureHttpHeader) The name of the header that carries the signature, for example X-Hub-Signature-256.signaturePrefix(String signaturePrefix) The text that precedes the signature in the header value, for example sha256=.signedMessageComposition(String signedMessageComposition) How the provider assembles the message it signs from the request.signedMessageComposition(WebhookSignedMessageComposition signedMessageComposition) How the provider assembles the message it signs from the request.timestampHttpHeader(String timestampHttpHeader) The name of the header that carries the request timestamp.timestampPrefix(String timestampPrefix) The text that precedes the timestamp in the header value, for example t=.timestampToleranceInSeconds(Integer timestampToleranceInSeconds) The maximum difference, in seconds, allowed between the request timestamp and the time EventBridge receives the request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
algorithm
The hash algorithm the provider uses to compute the signature.
- Parameters:
algorithm- The hash algorithm the provider uses to compute the signature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
algorithm
The hash algorithm the provider uses to compute the signature.
- Parameters:
algorithm- The hash algorithm the provider uses to compute the signature.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
encoding
How the provider encodes the signature in the header.
- Parameters:
encoding- How the provider encodes the signature in the header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
encoding
How the provider encodes the signature in the header.
- Parameters:
encoding- How the provider encodes the signature in the header.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
signatureHttpHeader
The name of the header that carries the signature, for example X-Hub-Signature-256. When TimestampHttpHeader names the same header, Delimiter, SignaturePrefix and TimestampPrefix are all required. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.
- Parameters:
signatureHttpHeader- The name of the header that carries the signature, for example X-Hub-Signature-256. When TimestampHttpHeader names the same header, Delimiter, SignaturePrefix and TimestampPrefix are all required. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
signaturePrefix
The text that precedes the signature in the header value, for example sha256=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.
- Parameters:
signaturePrefix- The text that precedes the signature in the header value, for example sha256=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
delimiter
The separator between parts of the signature header value, for example a comma for a header value of t=1727816400,v1=<signature>, or a space when the header carries several signatures. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.
- Parameters:
delimiter- The separator between parts of the signature header value, for example a comma for a header value of t=1727816400,v1=<signature>, or a space when the header carries several signatures. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestampHttpHeader
The name of the header that carries the request timestamp. Required when SignedMessageComposition is TIMESTAMP_DOT_BODY or MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY, or when TimestampToleranceInSeconds is set. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.
- Parameters:
timestampHttpHeader- The name of the header that carries the request timestamp. Required when SignedMessageComposition is TIMESTAMP_DOT_BODY or MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY, or when TimestampToleranceInSeconds is set. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestampPrefix
The text that precedes the timestamp in the header value, for example t=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.
- Parameters:
timestampPrefix- The text that precedes the timestamp in the header value, for example t=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestampToleranceInSeconds
WebhookHmacAuthConfiguration.Builder timestampToleranceInSeconds(Integer timestampToleranceInSeconds) The maximum difference, in seconds, allowed between the request timestamp and the time EventBridge receives the request. Requests outside this window are rejected. The default is 300 seconds. Requires TimestampHttpHeader. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp.
- Parameters:
timestampToleranceInSeconds- The maximum difference, in seconds, allowed between the request timestamp and the time EventBridge receives the request. Requests outside this window are rejected. The default is 300 seconds. Requires TimestampHttpHeader. Not allowed when SignedMessageComposition is BODY, because BODY does not sign the timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageIdHttpHeader
The name of the header that carries the message ID. Required when SignedMessageComposition is MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY. Requests whose message ID contains a period (.) are rejected. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.
- Parameters:
messageIdHttpHeader- The name of the header that carries the message ID. Required when SignedMessageComposition is MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY. Requests whose message ID contains a period (.) are rejected. Reserved names are rejected, as described on StaticTokenAuthConfiguration's TokenHttpHeader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
signedMessageComposition
How the provider assembles the message it signs from the request.
-
BODY - The request body alone. BODY provides no replay protection.
-
TIMESTAMP_DOT_BODY - <timestamp>.<body>. Requires TimestampHttpHeader.
-
MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY - <messageId>.<timestamp>.<body>, as in the Standard Webhooks specification. Requires TimestampHttpHeader and MessageIdHttpHeader.
- Parameters:
signedMessageComposition- How the provider assembles the message it signs from the request.-
BODY - The request body alone. BODY provides no replay protection.
-
TIMESTAMP_DOT_BODY - <timestamp>.<body>. Requires TimestampHttpHeader.
-
MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY - <messageId>.<timestamp>.<body>, as in the Standard Webhooks specification. Requires TimestampHttpHeader and MessageIdHttpHeader.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
signedMessageComposition
WebhookHmacAuthConfiguration.Builder signedMessageComposition(WebhookSignedMessageComposition signedMessageComposition) How the provider assembles the message it signs from the request.
-
BODY - The request body alone. BODY provides no replay protection.
-
TIMESTAMP_DOT_BODY - <timestamp>.<body>. Requires TimestampHttpHeader.
-
MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY - <messageId>.<timestamp>.<body>, as in the Standard Webhooks specification. Requires TimestampHttpHeader and MessageIdHttpHeader.
- Parameters:
signedMessageComposition- How the provider assembles the message it signs from the request.-
BODY - The request body alone. BODY provides no replay protection.
-
TIMESTAMP_DOT_BODY - <timestamp>.<body>. Requires TimestampHttpHeader.
-
MESSAGE_ID_DOT_TIMESTAMP_DOT_BODY - <messageId>.<timestamp>.<body>, as in the Standard Webhooks specification. Requires TimestampHttpHeader and MessageIdHttpHeader.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
secretValue
The signing key shared with the provider. If you omit it, EventBridge generates one. EventBridge stores the key only in AWS Secrets Manager and never returns it, including from DescribeEventSource. The key must be 16 to 512 bytes; with BASE64 SecretEncoding, this is measured after decoding.
- Parameters:
secretValue- The signing key shared with the provider. If you omit it, EventBridge generates one. EventBridge stores the key only in AWS Secrets Manager and never returns it, including from DescribeEventSource. The key must be 16 to 512 bytes; with BASE64 SecretEncoding, this is measured after decoding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secretEncoding
How the secret is encoded. RAW uses the secret's characters as the signing key. BASE64 decodes the secret first, as providers that follow the Standard Webhooks specification require. The default is RAW.
- Parameters:
secretEncoding- How the secret is encoded. RAW uses the secret's characters as the signing key. BASE64 decodes the secret first, as providers that follow the Standard Webhooks specification require. The default is RAW.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
secretEncoding
How the secret is encoded. RAW uses the secret's characters as the signing key. BASE64 decodes the secret first, as providers that follow the Standard Webhooks specification require. The default is RAW.
- Parameters:
secretEncoding- How the secret is encoded. RAW uses the secret's characters as the signing key. BASE64 decodes the secret first, as providers that follow the Standard Webhooks specification require. The default is RAW.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-