Total Complexity | 9 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Sign |
||
11 | { |
||
12 | public function __construct() {} |
||
13 | |||
14 | /** |
||
15 | * Verify signature of request |
||
16 | * |
||
17 | * @param array $options |
||
18 | */ |
||
19 | public function verify($request_str, $sign, $options) |
||
28 | ) |
||
29 | ); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * load file with easysoft public key |
||
35 | * |
||
36 | * @param array $options |
||
37 | * @throws Exception\Runtime |
||
38 | * @return string |
||
39 | */ |
||
40 | protected function get_pub_key($options) |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * check result of openssl verify signature |
||
52 | * |
||
53 | * @param integer $result |
||
54 | * @throws Exception\Sign |
||
55 | */ |
||
56 | protected function check_verify_sign_result($result) |
||
68 |