1 | <?php |
||
19 | final class ConfigurationHelper |
||
20 | { |
||
21 | /** |
||
22 | * @param string $name |
||
23 | * @param string[] $header_checkers |
||
24 | * @param string[] $claim_checkers |
||
25 | * |
||
26 | * @return array |
||
27 | */ |
||
28 | public static function getCheckerConfiguration($name, array $header_checkers, array $claim_checkers, $is_public = true) |
||
47 | |||
48 | /** |
||
49 | * @param string $name |
||
50 | * @param string[] $signature_algorithms |
||
51 | * @param bool $create_verifier |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | public static function getSignerConfiguration($name, array $signature_algorithms, $create_verifier = false, $is_public = true) |
||
75 | |||
76 | /** |
||
77 | * @param string $name |
||
78 | * @param string[] $signature_algorithms |
||
79 | * |
||
80 | * @return array |
||
81 | */ |
||
82 | public static function getVerifierConfiguration($name, array $signature_algorithms, $is_public = true) |
||
100 | |||
101 | /** |
||
102 | * @param string $name |
||
103 | * @param string[] $key_encryption_algorithms |
||
104 | * @param string[] $content_encryption_algorithms |
||
105 | * @param string[] $compression_methods |
||
106 | * @param bool $create_decrypter |
||
107 | * |
||
108 | * @return array |
||
109 | */ |
||
110 | public static function getEncrypterConfiguration($name, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF'], $create_decrypter = false, $is_public = true) |
||
134 | |||
135 | /** |
||
136 | * @param string $name |
||
137 | * @param string[] $key_encryption_algorithms |
||
138 | * @param string[] $content_encryption_algorithms |
||
139 | * @param string[] $compression_methods |
||
140 | * |
||
141 | * @return array |
||
142 | */ |
||
143 | public static function getDecrypterConfiguration($name, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods = ['DEF'], $is_public = true) |
||
165 | |||
166 | /** |
||
167 | * @param string $name |
||
168 | * @param string $signer |
||
169 | * @param string|null $encrypter |
||
170 | * |
||
171 | * @return array |
||
172 | */ |
||
173 | public static function getJWTCreatorConfiguration($name, $signer, $encrypter = null, $is_public = true) |
||
193 | |||
194 | /** |
||
195 | * @param string $name |
||
196 | * @param string $verifier |
||
197 | * @param string $checker |
||
198 | * @param string|null $decrypter |
||
199 | * |
||
200 | * @return array |
||
201 | */ |
||
202 | public static function getJWTLoaderConfiguration($name, $verifier, $checker, $decrypter = null, $is_public = true) |
||
225 | } |
||
226 |