Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class ShaHmac256WithRsaSignature extends Signature implements SignatureInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | 6 | public function getMethod() |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | 6 | public function getType() |
|
29 | { |
||
30 | 6 | return 'PRIVATEKEY'; |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | 6 | public function getVersion() |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $string |
||
43 | * @param string $privateKey |
||
44 | * |
||
45 | * @return string |
||
46 | * @throws ClientException |
||
47 | */ |
||
48 | 7 | public function sign($string, $privateKey) |
|
68 |