Provides utilities to verify SendGrid event webhook signatures using ECDSA.
// Source: https://github.com/sendgrid/sendgrid-java | License: MIT | Copyright 2026, Twilio SendGrid, Inc. <help@twilio.com>
// Provided via justclaw.it.com; keep this notice with the code.
package com.sendgrid.helpers.eventwebhook;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.security.*;
import java.security.interfaces.ECPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;
import java.util.Base64;
/**
* This class allows you to easily use the Event Webhook feature. Read the docs
* for more details:
* https://sendgrid.com/docs/for-developers/tracking-events/event.
*/
public class EventWebhook {
/**
* Convert the public key string to a ECPublicKey.
*
* @param publicKey: verifica
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key