1 | <?php |
||
5 | class JwtRsaKey implements JwtKeyInterface |
||
6 | { |
||
7 | protected $private; |
||
8 | protected $public; |
||
9 | |||
10 | /** |
||
11 | * JwtRsaKey constructor. |
||
12 | * @param $private |
||
13 | * @param $public |
||
14 | */ |
||
15 | public function __construct($private, $public) |
||
20 | |||
21 | /** |
||
22 | * @param $private |
||
23 | * @param $public |
||
24 | * @return JwtRsaKey |
||
25 | */ |
||
26 | public static function getInstance($private, $public) |
||
30 | |||
31 | public function getPublicKey() |
||
35 | |||
36 | public function getPrivateKey() |
||
40 | |||
41 | public function getAlghoritm() |
||
45 | } |
||
46 |