public function SubscriptionInterface::checkSignature in Feeds 8.3
Verifies that the content that was pushed comes from a verified source.
Parameters
string $sha1: The HMAC signature from the hub.
string $data: The data to hash and then compare to the hub's signature.
Return value
bool True if the signature is valid, false otherwise.
1 method overrides SubscriptionInterface::checkSignature()
- Subscription::checkSignature in src/
Entity/ Subscription.php - Verifies that the content that was pushed comes from a verified source.
File
- src/
SubscriptionInterface.php, line 115
Class
- SubscriptionInterface
- Provides an interface defining a feeds_subscription entity.
Namespace
Drupal\feedsCode
public function checkSignature($sha1, $data);