| 1 | <?php |
||
| 5 | class Signature |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @const int Default tolarence in seconds. |
||
| 9 | */ |
||
| 10 | const DEFAULT_TOLERANCE = 300; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Verifies the signature header. |
||
| 14 | * |
||
| 15 | * @param string $payload |
||
| 16 | * @param string $header |
||
| 17 | * @param string $secret |
||
| 18 | * @param int $tolerance |
||
| 19 | * |
||
| 20 | * @return bool |
||
| 21 | */ |
||
| 22 | 3 | public static function verify( |
|
| 37 | } |
||
| 38 |