1 | <?php |
||
12 | class EncryptionVerifier implements VerifierInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var Encryption\EncryptionInterface |
||
16 | */ |
||
17 | private $encryption; |
||
18 | |||
19 | /** |
||
20 | * @var Encoding\EncoderInterface |
||
21 | */ |
||
22 | private $encoder; |
||
23 | |||
24 | /** |
||
25 | * @var Signature\Jws |
||
26 | */ |
||
27 | protected $signer; |
||
28 | |||
29 | /** |
||
30 | * @param Encryption\EncryptionInterface $encryption |
||
31 | * @param Encoding\EncoderInterface $encoder |
||
32 | */ |
||
33 | public function __construct(Encryption\EncryptionInterface $encryption, Encoding\EncoderInterface $encoder) |
||
39 | |||
40 | /** |
||
41 | * @param Token $token |
||
42 | * @throws InvalidSignatureException |
||
43 | */ |
||
44 | public function verify(Token $token) |
||
65 | } |
||
66 |