1 | <?php |
||
7 | class HmacSha1Signer implements SignerInterface, BaseStringSignerInterface, KeyBasedSignerInterface |
||
8 | { |
||
9 | use CanBuildBaseString, |
||
10 | CanGetSigningKey; |
||
11 | |||
12 | /** |
||
13 | * {@inheritDoc} |
||
14 | */ |
||
15 | 1 | public function getMethod() |
|
19 | |||
20 | /** |
||
21 | * {@inheritDoc} |
||
22 | */ |
||
23 | 1 | public function sign($uri, array $parameters = [], $httpMethod = 'POST') |
|
29 | |||
30 | /** |
||
31 | * Hash the data with HMAC method. |
||
32 | * |
||
33 | * @param string $data |
||
34 | * @return string |
||
35 | */ |
||
36 | 2 | public function hash($data) |
|
40 | } |
||
41 |