Debian Codegraph @

lib/3rdParty/composer/facile-it/php-openid-client/stubs/Jose/Component/Encryption/JWE.php.stub

raw
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Jose\Component\Encryption;
6
7 use Jose\Component\Signature\Signature;
8 use function array_key_exists;
9 use function count;
10 use InvalidArgumentException;
11 use Jose\Component\Core\JWT;
12 use Facile\JoseVerifier\Psalm\PsalmTypes;
13
14 /**
15 * @psalm-import-type JWTHeaderType from Signature
16 */
17 class JWE implements JWT
18 {
19 /**
20 * @param JWTHeaderType|array<empty, empty> $sharedHeader
21 * @param JWTHeaderType|array<empty, empty> $sharedProtectedHeader
22 * @param Recipient[] $recipients
23 */
24 public function __construct(string $ciphertext, string $iv, string $tag, ?string $aad = null, array $sharedHeader = [], array $sharedProtectedHeader = [], ?string $encodedSharedProtectedHeader = null, array $recipients = [])
25 {
26 }
27
28 public function getPayload(): ?string
29 {
30 }
31
32 public function withPayload(string $payload): self
33 {
34 }
35
36 public function countRecipients(): int
37 {
38 }
39
40 public function isEncrypted(): bool
41 {
42 }
43
44 /**
45 * @return Recipient[]
46 */
47 public function getRecipients(): array
48 {
49 }
50
51 /**
52 * Returns the recipient object at the given index.
53 *
54 * @throws InvalidArgumentException if the recipient ID does not exist
55 */
56 public function getRecipient(int $id): Recipient
57 {
58 }
59
60 public function getCiphertext(): ?string
61 {
62 }
63
64 public function getAAD(): ?string
65 {
66 }
67
68 public function getIV(): ?string
69 {
70 }
71
72 public function getTag(): ?string
73 {
74 }
75
76 public function getEncodedSharedProtectedHeader(): string
77 {
78 }
79
80 /**
81 * @return JWTHeaderType
82 */
83 public function getSharedProtectedHeader(): array
84 {
85 }
86
87 /**
88 * @throws InvalidArgumentException if the shared protected header parameter does not exist
89 *
90 * @return null|mixed
91 */
92 public function getSharedProtectedHeaderParameter(string $key)
93 {
94 }
95
96 public function hasSharedProtectedHeaderParameter(string $key): bool
97 {
98 }
99
100 /**
101 * @return JWTHeaderType
102 */
103 public function getSharedHeader(): array
104 {
105 }
106
107 /**
108 * @throws InvalidArgumentException if the shared header parameter does not exist
109 *
110 * @return null|mixed
111 */
112 public function getSharedHeaderParameter(string $key)
113 {
114 }
115
116 public function hasSharedHeaderParameter(string $key): bool
117 {
118 }
119
120 /**
121 * @return JWE[]
122 */
123 public function split(): array
124 {
125 }
126 }