Class WebhookHmacAuthConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WebhookHmacAuthConfiguration.Builder,WebhookHmacAuthConfiguration>
The provider signs each request with a hash-based message authentication code (HMAC) of the secret. Amazon EventBridge accepts the request if any signature in SignatureHttpHeader matches.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal WebhookHmacAlgorithmThe hash algorithm the provider uses to compute the signature.final StringThe hash algorithm the provider uses to compute the signature.builder()final StringThe 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.final WebhookHmacEncodingencoding()How the provider encodes the signature in the header.final StringHow the provider encodes the signature in the header.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe name of the header that carries the message ID.final WebhookSecretEncodingHow the secret is encoded.final StringHow the secret is encoded.final StringThe signing key shared with the provider.static Class<? extends WebhookHmacAuthConfiguration.Builder> final StringThe name of the header that carries the signature, for example X-Hub-Signature-256.final StringThe text that precedes the signature in the header value, for example sha256=.How the provider assembles the message it signs from the request.final StringHow the provider assembles the message it signs from the request.final StringThe name of the header that carries the request timestamp.final StringThe text that precedes the timestamp in the header value, for example t=.final IntegerThe maximum difference, in seconds, allowed between the request timestamp and the time EventBridge receives the request.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
algorithm
The hash algorithm the provider uses to compute the signature.
If the service returns an enum value that is not available in the current SDK version,
algorithmwill returnWebhookHmacAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromalgorithmAsString().- Returns:
- The hash algorithm the provider uses to compute the signature.
- See Also:
-
algorithmAsString
The hash algorithm the provider uses to compute the signature.
If the service returns an enum value that is not available in the current SDK version,
algorithmwill returnWebhookHmacAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromalgorithmAsString().- Returns:
- The hash algorithm the provider uses to compute the signature.
- See Also:
-
encoding
How the provider encodes the signature in the header.
If the service returns an enum value that is not available in the current SDK version,
encodingwill returnWebhookHmacEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromencodingAsString().- Returns:
- How the provider encodes the signature in the header.
- See Also:
-
encodingAsString
How the provider encodes the signature in the header.
If the service returns an enum value that is not available in the current SDK version,
encodingwill returnWebhookHmacEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromencodingAsString().- Returns:
- How the provider encodes the signature in the header.
- 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.
- Returns:
- 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.
-
signaturePrefix
The text that precedes the signature in the header value, for example sha256=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.
- Returns:
- The text that precedes the signature in the header value, for example sha256=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.
-
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:
- 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.
-
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:
- 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.
-
timestampPrefix
The text that precedes the timestamp in the header value, for example t=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.
- Returns:
- The text that precedes the timestamp in the header value, for example t=. Required when TimestampHttpHeader is the same header as SignatureHttpHeader.
-
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:
- 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.
-
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:
- 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.
-
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.
If the service returns an enum value that is not available in the current SDK version,
signedMessageCompositionwill returnWebhookSignedMessageComposition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsignedMessageCompositionAsString().- Returns:
- 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.
-
- See Also:
-
-
signedMessageCompositionAsString
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.
If the service returns an enum value that is not available in the current SDK version,
signedMessageCompositionwill returnWebhookSignedMessageComposition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsignedMessageCompositionAsString().- Returns:
- 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.
-
- 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.
- Returns:
- 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.
-
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.
If the service returns an enum value that is not available in the current SDK version,
secretEncodingwill returnWebhookSecretEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecretEncodingAsString().- Returns:
- 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.
- See Also:
-
secretEncodingAsString
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.
If the service returns an enum value that is not available in the current SDK version,
secretEncodingwill returnWebhookSecretEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecretEncodingAsString().- Returns:
- 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.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<WebhookHmacAuthConfiguration.Builder,WebhookHmacAuthConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-