1 | <?php |
||
19 | final class ConfigurationHelper |
||
20 | { |
||
21 | /** |
||
22 | * @param string $name |
||
23 | * @param string[] $header_checkers |
||
24 | * @param string[] $claim_checkers |
||
25 | * @param bool $is_public |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public static function getCheckerConfiguration($name, array $header_checkers, array $claim_checkers, $is_public = true) |
||
48 | |||
49 | /** |
||
50 | * @param string $name |
||
51 | * @param string[] $signature_algorithms |
||
52 | * @param bool $create_verifier |
||
53 | * @param bool $is_public |
||
54 | * |
||
55 | * @return array |
||
56 | */ |
||
57 | public static function getSignerConfiguration($name, array $signature_algorithms, $create_verifier = false, $is_public = true) |
||
77 | |||
78 | /** |
||
79 | * @param string $name |
||
80 | * @param string[] $signature_algorithms |
||
81 | * @param bool $is_public |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | public static function getVerifierConfiguration($name, array $signature_algorithms, $is_public = true) |
||
103 | |||
104 | /** |
||
105 | * @param string $name |
||
106 | * @param string[] $key_encryption_algorithms |
||
107 | * @param string[] $content_encryption_algorithms |
||
108 | * @param string[] $compression_methods |
||
109 | * @param bool $create_decrypter |
||
110 | * @param bool $is_public |
||
111 | * |
||
112 | * @return array |
||
113 | */ |
||
114 | public static function getEncrypterConfiguration($name, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF'], $create_decrypter = false, $is_public = true) |
||
138 | |||
139 | /** |
||
140 | * @param string $name |
||
141 | * @param string[] $key_encryption_algorithms |
||
142 | * @param string[] $content_encryption_algorithms |
||
143 | * @param string[] $compression_methods |
||
144 | * @param bool $is_public |
||
145 | * |
||
146 | * @return array |
||
147 | */ |
||
148 | public static function getDecrypterConfiguration($name, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF'], $is_public = true) |
||
170 | |||
171 | /** |
||
172 | * @param string $name |
||
173 | * @param string $signer |
||
174 | * @param string|null $encrypter |
||
175 | * @param bool $is_public |
||
176 | * |
||
177 | * @return array |
||
178 | */ |
||
179 | public static function getJWTCreatorConfiguration($name, $signer, $encrypter = null, $is_public = true) |
||
199 | |||
200 | /** |
||
201 | * @param string $name |
||
202 | * @param string $verifier |
||
203 | * @param string $checker |
||
204 | * @param string|null $decrypter |
||
205 | * @param bool $is_public |
||
206 | * |
||
207 | * @return array |
||
208 | */ |
||
209 | public static function getJWTLoaderConfiguration($name, $verifier, $checker, $decrypter = null, $is_public = true) |
||
232 | } |
||
233 |