1 | <?php |
||
34 | final class JWKFactory implements JWKFactoryInterface |
||
35 | { |
||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public static function createPublicKeySet(JWKSetInterface $jwkset) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public static function createKeySets(array $jwksets = []) |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public static function createStorableKey($filename, array $parameters) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public static function createRotatableKeySet($filename, array $parameters, $nb_keys) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public static function createStorableKeySet($filename, array $parameters, $nb_keys) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public static function createKey(array $config) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public static function createRSAKey(array $values) |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public static function createECKey(array $values) |
||
158 | |||
159 | /** |
||
160 | * @param array $values |
||
161 | * |
||
162 | * @return array |
||
163 | */ |
||
164 | private static function createECKeyFromNativeFunctions(array $values) |
||
167 | |||
168 | /** |
||
169 | * {@inheritdoc} |
||
170 | */ |
||
171 | public static function createOctKey(array $values) |
||
187 | |||
188 | /** |
||
189 | * {@inheritdoc} |
||
190 | */ |
||
191 | public static function createOKPKey(array $values) |
||
222 | |||
223 | /** |
||
224 | * {@inheritdoc} |
||
225 | */ |
||
226 | public static function createNoneKey(array $values) |
||
239 | |||
240 | /** |
||
241 | * @param string $value |
||
242 | * |
||
243 | * @return string |
||
244 | */ |
||
245 | private static function encodeValue($value) |
||
251 | |||
252 | /** |
||
253 | * @param string $value |
||
254 | * |
||
255 | * @return string |
||
256 | */ |
||
257 | private static function convertDecToBin($value) |
||
263 | |||
264 | /** |
||
265 | * @param string $curve |
||
266 | * |
||
267 | * @throws \InvalidArgumentException |
||
268 | * |
||
269 | * @return string |
||
270 | */ |
||
271 | private static function getOpensslName($curve) |
||
284 | |||
285 | /** |
||
286 | * @param string $curve |
||
287 | * |
||
288 | * @throws \InvalidArgumentException |
||
289 | * |
||
290 | * @return string |
||
291 | */ |
||
292 | private static function getNistName($curve) |
||
305 | |||
306 | /** |
||
307 | * {@inheritdoc} |
||
308 | */ |
||
309 | public static function createFromValues(array $values) |
||
317 | |||
318 | /** |
||
319 | * {@inheritdoc} |
||
320 | */ |
||
321 | public static function createFromCertificateFile($file, array $additional_values = []) |
||
328 | |||
329 | /** |
||
330 | * {@inheritdoc} |
||
331 | */ |
||
332 | public static function createFromCertificate($certificate, array $additional_values = []) |
||
339 | |||
340 | /** |
||
341 | * {@inheritdoc} |
||
342 | */ |
||
343 | public static function createFromX509Resource($res, array $additional_values = []) |
||
350 | |||
351 | /** |
||
352 | * {@inheritdoc} |
||
353 | */ |
||
354 | public static function createFromKeyFile($file, $password = null, array $additional_values = []) |
||
361 | |||
362 | /** |
||
363 | * {@inheritdoc} |
||
364 | */ |
||
365 | public static function createFromKey($key, $password = null, array $additional_values = []) |
||
372 | |||
373 | /** |
||
374 | * {@inheritdoc} |
||
375 | */ |
||
376 | public static function createFromJKU($jku, $allow_unsecured_connection = false, CacheItemPoolInterface $cache = null, $ttl = 86400, $allow_http_connection = false) |
||
380 | |||
381 | /** |
||
382 | * {@inheritdoc} |
||
383 | */ |
||
384 | public static function createFromX5U($x5u, $allow_unsecured_connection = false, CacheItemPoolInterface $cache = null, $ttl = 86400, $allow_http_connection = false) |
||
388 | |||
389 | /** |
||
390 | * {@inheritdoc} |
||
391 | */ |
||
392 | public static function createFromX5C(array $x5c, array $additional_values = []) |
||
399 | |||
400 | /** |
||
401 | * {@inheritdoc} |
||
402 | */ |
||
403 | public static function createFromKeySet(JWKSetInterface $jwk_set, $key_index) |
||
409 | } |
||
410 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.