1 | <?php |
||
19 | final class Signature implements SignatureInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var null|string |
||
23 | */ |
||
24 | private $encoded_protected_headers = null; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $protected_headers = []; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $headers = []; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $signature; |
||
40 | |||
41 | /** |
||
42 | * @var \Jose\Object\JWKInterface |
||
43 | */ |
||
44 | private $signature_key; |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getProtectedHeaders() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getHeaders() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getEncodedProtectedHeaders() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function withProtectedHeaders(array $protected_headers) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function getProtectedHeader($key) |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function hasProtectedHeader($key) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function withHeaders(array $headers) |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | public function withHeader($key, $value) |
||
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | public function getHeader($key) |
||
135 | |||
136 | /** |
||
137 | * {@inheritdoc} |
||
138 | */ |
||
139 | public function hasHeader($key) |
||
143 | |||
144 | public function getAllHeaders() |
||
151 | |||
152 | /** |
||
153 | * {@inheritdoc} |
||
154 | */ |
||
155 | public function getSignature() |
||
159 | |||
160 | /** |
||
161 | * {@inheritdoc} |
||
162 | */ |
||
163 | public function withSignature($values) |
||
170 | |||
171 | /** |
||
172 | * @return \Jose\Object\JWKInterface |
||
173 | */ |
||
174 | public function getSignatureKey() |
||
178 | |||
179 | /** |
||
180 | * @param \Jose\Object\JWKInterface $signature_key |
||
181 | * |
||
182 | * @return \Jose\Object\SignatureInterface |
||
183 | */ |
||
184 | public function withSignatureKey(JWKInterface $signature_key) |
||
191 | } |
||
192 |