| 1 | <?php namespace nyx\auth\signers; |
||
| 15 | abstract class Hmac extends auth\Signer |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * {@inheritDoc} |
||
| 19 | */ |
||
| 20 | const METHOD = 'hmac'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritDoc} |
||
| 24 | */ |
||
| 25 | public function sign(string $payload, $key) : string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritDoc} |
||
| 41 | */ |
||
| 42 | public function verify(string $expected, string $payload, $key) : bool |
||
| 46 | } |
||
| 47 |