Interface WebhookService
-
- All Implemented Interfaces:
public interface WebhookService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceWebhookService.WithRawResponseA view of WebhookService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract WebhookService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract WebhookServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract UnwrapWebhookEventparseUnverified(String body)Parses a webhook payload into an event without verifying its signature. abstract UnwrapWebhookEventunwrap(UnwrapWebhookParams unwrapParams)Verifies the webhook signature from the webhook-id,webhook-timestampandwebhook-signatureheaders using your webhook signing key, then parses the payload into an event.-
-
Method Detail
-
withRawResponse
abstract WebhookService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WebhookService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
parseUnverified
abstract UnwrapWebhookEvent parseUnverified(String body)
Parses a webhook payload into an event without verifying its signature. Prefer
unwrap()unless you have already verified the signature yourself.
-
unwrap
abstract UnwrapWebhookEvent unwrap(UnwrapWebhookParams unwrapParams)
Verifies the webhook signature from the
webhook-id,webhook-timestampandwebhook-signatureheaders using your webhook signing key, then parses the payload into an event. Fails if the signature is missing or invalid.
-
-
-
-