Class GitHubSignatureVerifier
java.lang.Object
io.agentscope.extensions.channel.github.GitHubSignatureVerifier
Verifies the
X-Hub-Signature-256 header on GitHub webhook deliveries: a sha256=
prefix followed by the HMAC-SHA256 of the raw request body keyed with the configured webhook
secret.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GitHubSignatureVerifier
-
-
Method Details
-
verify
Returns true whenheadermatches"sha256=" + hex(HMAC-SHA256(secret, body)). Comparison is constant time.
-