Class WebhookSignatureValidator
LINE Webhook signature validation (x-line-signature). This is not part of the OpenAPI spec, so it is implemented by hand. Using the channel secret as the key, it computes the HMAC-SHA256 of the request body (raw bytes), Base64-encodes it, and compares it against the header value in constant time.
public static class WebhookSignatureValidator
- Inheritance
-
WebhookSignatureValidator
- Inherited Members
Methods
IsValid(string, byte[], string?)
public static bool IsValid(string channelSecret, byte[] requestBody, string? xLineSignatureHeader)