1 | <?php |
||
11 | abstract class RSA implements SignerInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | public function sign($payload, KeyManagerInterface $key) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function verify($expected, $payload, KeyManagerInterface $key) |
||
43 | |||
44 | /** |
||
45 | * Extract public key from private key file. |
||
46 | * |
||
47 | * @param string $key |
||
48 | */ |
||
49 | private function extractPublicKeyFromPrivateKeyFile(KeyManagerInterface $key) |
||
66 | } |
||
67 |