1 | <?php |
||
17 | final class Recipient implements RecipientInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private $headers = []; |
||
23 | |||
24 | /** |
||
25 | * @var null|string |
||
26 | */ |
||
27 | private $encrypted_key = null; |
||
28 | |||
29 | /** |
||
30 | * @var \Jose\Object\JWKInterface |
||
31 | */ |
||
32 | private $recipient_key = null; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public static function createRecipientFromLoadedJWE(array $headers, $encrypted_key) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function createRecipient(JWKInterface $recipient_key, array $headers = []) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function getHeaders() |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getHeader($key) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function hasHeader($key) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function getEncryptedKey() |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function getRecipientKey() |
||
100 | } |
||
101 |