1 | <?php |
||
17 | class EncryptionInstruction implements EncryptionInstructionInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $recipient_unprotected_header = []; |
||
23 | /** |
||
24 | * @var \Jose\JWKInterface |
||
25 | */ |
||
26 | protected $recipient_public_key; |
||
27 | /** |
||
28 | * @var null|\Jose\JWKInterface |
||
29 | */ |
||
30 | protected $sender_private_key = null; |
||
31 | |||
32 | /** |
||
33 | * EncryptionInstruction constructor. |
||
34 | * |
||
35 | * @param \Jose\JWKInterface $recipient_public_key |
||
36 | * @param \Jose\JWKInterface|null $sender_private_key |
||
37 | * @param array $recipient_unprotected_header |
||
38 | */ |
||
39 | public function __construct(JWKInterface $recipient_public_key, JWKInterface $sender_private_key = null, array $recipient_unprotected_header = []) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getRecipientKey() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getSenderKey() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getRecipientUnprotectedHeader() |
||
69 | } |
||
70 |