1 | <?php |
||
20 | final class Signature implements SignatureInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var null|string |
||
24 | */ |
||
25 | private $encoded_protected_headers = null; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $protected_headers = []; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | private $headers = []; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $signature; |
||
41 | |||
42 | /** |
||
43 | * @var \Jose\Object\JWKInterface |
||
44 | */ |
||
45 | private $signature_key; |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public static function createSignatureFromLoadedData($signature, $encoded_protected_headers, array $headers) |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public static function createSignature(JWKInterface $signature_key, array $protected_headers, array $headers) |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function getProtectedHeaders() |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function getHeaders() |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function getEncodedProtectedHeaders() |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function getProtectedHeader($key) |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public function hasProtectedHeader($key) |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | public function getHeader($key) |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function hasHeader($key) |
||
142 | |||
143 | public function getAllHeaders() |
||
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | public function getSignature() |
||
158 | |||
159 | /** |
||
160 | * @return \Jose\Object\JWKInterface |
||
161 | */ |
||
162 | public function getSignatureKey() |
||
166 | } |
||
167 |