| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class HmacSha1Signer implements SignerInterface, BaseStringSignerInterface, KeyBasedSignerInterface |
||
| 6 | { |
||
| 7 | use CanBuildBaseString, |
||
| 8 | CanGetSigningKey; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | 1 | public function getMethod() |
|
| 14 | { |
||
| 15 | 1 | return 'HMAC-SHA1'; |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | 1 | public function sign($uri, array $parameters = [], $httpMethod = 'POST') |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Hash the data with HMAC method. |
||
| 30 | * |
||
| 31 | * @param string $data |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 2 | public function hash($data) |
|
| 38 | } |
||
| 39 | } |
||
| 40 |