1 | <?php |
||
16 | class HmacUsingSha implements JwsAlgorithm |
||
17 | { |
||
18 | /** @var string */ |
||
19 | private $hashMethod; |
||
20 | |||
21 | /** |
||
22 | * @param string $hashMethod |
||
23 | */ |
||
24 | public function __construct($hashMethod) |
||
28 | |||
29 | /** |
||
30 | * @param string $securedInput |
||
31 | * @param string $key |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function sign($securedInput, $key) |
||
43 | |||
44 | /** |
||
45 | * @param string $signature |
||
46 | * @param string $securedInput |
||
47 | * @param string $key |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function verify($signature, $securedInput, $key) |
||
61 | } |
||
62 |