1 | <?php |
||
18 | class ConfigurationHelper |
||
19 | { |
||
20 | public const BUNDLE_ALIAS = 'jose'; |
||
21 | |||
22 | /** |
||
23 | * @param string[] $signatureAlgorithms |
||
24 | */ |
||
25 | public static function addJWSBuilder(ContainerBuilder $container, string $name, array $signatureAlgorithms, bool $is_public = true, array $tags = []): void |
||
42 | |||
43 | /** |
||
44 | * @param string[] $signatureAlgorithms |
||
45 | */ |
||
46 | public static function addJWSVerifier(ContainerBuilder $container, string $name, array $signatureAlgorithms, bool $is_public = true, array $tags = []): void |
||
64 | |||
65 | /** |
||
66 | * @param string[] $serializers |
||
67 | */ |
||
68 | public static function addJWSSerializer(ContainerBuilder $container, string $name, array $serializers, bool $is_public = true, array $tags = []): void |
||
86 | |||
87 | /** |
||
88 | * @param string[] $serializers |
||
89 | * @param string[] $signature_algorithms |
||
90 | * @param string[] $header_checkers |
||
91 | */ |
||
92 | public static function addJWSLoader(ContainerBuilder $container, string $name, array $serializers, array $signature_algorithms, array $header_checkers, bool $is_public = true, array $tags = []): void |
||
112 | |||
113 | /** |
||
114 | * @param string[] $jwe_serializers |
||
115 | * @param string[] $key_encryption_algorithms |
||
116 | * @param string[] $content_encryption_algorithms |
||
117 | * @param string[] $compression_methods |
||
118 | * @param string[] $jwe_header_checkers |
||
119 | * @param string[] $jws_serializers |
||
120 | * @param string[] $signature_algorithms |
||
121 | * @param string[] $jws_header_checkers |
||
122 | */ |
||
123 | public static function addNestedTokenLoader(ContainerBuilder $container, string $name, array $jwe_serializers, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods, array $jwe_header_checkers, array $jws_serializers, array $signature_algorithms, array $jws_header_checkers, bool $is_public = true, array $tags = []): void |
||
148 | |||
149 | /** |
||
150 | * @param string[] $jwe_serializers |
||
151 | * @param string[] $key_encryption_algorithms |
||
152 | * @param string[] $content_encryption_algorithms |
||
153 | * @param string[] $compression_methods |
||
154 | * @param string[] $jws_serializers |
||
155 | * @param string[] $signature_algorithms |
||
156 | */ |
||
157 | public static function addNestedTokenBuilder(ContainerBuilder $container, string $name, array $jwe_serializers, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods, array $jws_serializers, array $signature_algorithms, bool $is_public = true, array $tags = []): void |
||
180 | |||
181 | /** |
||
182 | * @param string[] $serializers |
||
183 | */ |
||
184 | public static function addJWESerializer(ContainerBuilder $container, string $name, array $serializers, bool $is_public = true, array $tags = []): void |
||
202 | |||
203 | /** |
||
204 | * @param string[] $serializers |
||
205 | * @param string[] $key_encryption_algorithms |
||
206 | * @param string[] $content_encryption_algorithms |
||
207 | * @param string[] $compression_methods |
||
208 | * @param string[] $header_checkers |
||
209 | */ |
||
210 | public static function addJWELoader(ContainerBuilder $container, string $name, array $serializers, array $key_encryption_algorithms, array $content_encryption_algorithms, array $compression_methods, array $header_checkers, bool $is_public = true, array $tags = []): void |
||
232 | |||
233 | /** |
||
234 | * @param string[] $claimCheckers |
||
235 | */ |
||
236 | public static function addClaimChecker(ContainerBuilder $container, string $name, array $claimCheckers, bool $is_public = true, array $tags = []): void |
||
254 | |||
255 | /** |
||
256 | * @param string[] $headerCheckers |
||
257 | */ |
||
258 | public static function addHeaderChecker(ContainerBuilder $container, string $name, array $headerCheckers, bool $is_public = true, array $tags = []): void |
||
276 | |||
277 | public static function addKey(ContainerBuilder $container, string $name, string $type, array $parameters, bool $is_public = true, array $tags = []): void |
||
293 | |||
294 | public static function addKeyset(ContainerBuilder $container, string $name, string $type, array $parameters, bool $is_public = true, array $tags = []): void |
||
310 | |||
311 | public static function addKeyUri(ContainerBuilder $container, string $name, array $parameters, bool $is_public = true, array $tags = []): void |
||
325 | |||
326 | public static function addJWEBuilder(ContainerBuilder $container, string $name, array $keyEncryptionAlgorithm, array $contentEncryptionAlgorithms, array $compressionMethods = ['DEF'], bool $is_public = true, array $tags = []): void |
||
346 | |||
347 | public static function addJWEDecrypter(ContainerBuilder $container, string $name, array $keyEncryptionAlgorithm, array $contentEncryptionAlgorithms, array $compressionMethods = ['DEF'], bool $is_public = true, array $tags = []): void |
||
367 | |||
368 | private static function updateJoseConfiguration(ContainerBuilder $container, array $config, string $element): void |
||
377 | } |
||
378 |