1 | <?php |
||
21 | final class ConfigurationHelper |
||
22 | { |
||
23 | const BUNDLE_ALIAS = 'jose'; |
||
24 | |||
25 | /** |
||
26 | * @param ContainerBuilder $container |
||
27 | * @param string $name |
||
28 | * @param string[] $signatureAlgorithms |
||
29 | * @param bool $is_public |
||
30 | */ |
||
31 | public static function addJWSBuilder(ContainerBuilder $container, string $name, array $signatureAlgorithms, bool $is_public = true) |
||
45 | |||
46 | /** |
||
47 | * @param ContainerBuilder $container |
||
48 | * @param string $name |
||
49 | * @param string[] $signatureAlgorithms |
||
50 | * @param string[] $headerCheckers |
||
51 | * @param string[] $serializers |
||
52 | * @param bool $is_public |
||
53 | */ |
||
54 | public static function addJWSLoader(ContainerBuilder $container, string $name, array $signatureAlgorithms, array $headerCheckers, array $serializers = ['jws_compact'], bool $is_public = true) |
||
71 | |||
72 | /** |
||
73 | * @param ContainerBuilder $container |
||
74 | * @param string $name |
||
75 | * @param string[] $claimCheckers |
||
76 | * @param bool $is_public |
||
77 | */ |
||
78 | public static function addClaimChecker(ContainerBuilder $container, string $name, array $claimCheckers, bool $is_public = true) |
||
93 | |||
94 | /** |
||
95 | * @param ContainerBuilder $container |
||
96 | * @param string $name |
||
97 | * @param string[] $headerCheckers |
||
98 | * @param bool $is_public |
||
99 | */ |
||
100 | public static function addHeaderChecker(ContainerBuilder $container, string $name, array $headerCheckers, bool $is_public = true) |
||
115 | |||
116 | /** |
||
117 | * @param ContainerBuilder $container |
||
118 | * @param string $name |
||
119 | * @param string $type |
||
120 | * @param array $parameters |
||
121 | */ |
||
122 | public static function addKey(ContainerBuilder $container, string $name, string $type, array $parameters) |
||
136 | |||
137 | /** |
||
138 | * @param ContainerBuilder $container |
||
139 | * @param string $name |
||
140 | * @param string $type |
||
141 | * @param array $parameters |
||
142 | */ |
||
143 | public static function addKeyset(ContainerBuilder $container, string $name, string $type, array $parameters) |
||
157 | |||
158 | /** |
||
159 | * @param ContainerBuilder $container |
||
160 | * @param string $name |
||
161 | * @param array $keyEncryptionAlgorithm |
||
162 | * @param array $contentEncryptionAlgorithms |
||
163 | * @param array $compressionMethods |
||
164 | * @param bool $is_public |
||
165 | */ |
||
166 | public static function addJWEBuilder(ContainerBuilder $container, string $name, array $keyEncryptionAlgorithm, array $contentEncryptionAlgorithms, array $compressionMethods = ['DEF'], bool $is_public = true) |
||
183 | |||
184 | /** |
||
185 | * @param ContainerBuilder $container |
||
186 | * @param string $name |
||
187 | * @param array $keyEncryptionAlgorithm |
||
188 | * @param array $contentEncryptionAlgorithms |
||
189 | * @param array $compressionMethods |
||
190 | * @param array $headerCheckers |
||
191 | * @param array $serializers |
||
192 | * @param bool $is_public |
||
193 | */ |
||
194 | public static function addJWELoader(ContainerBuilder $container, string $name, array $keyEncryptionAlgorithm, array $contentEncryptionAlgorithms, array $compressionMethods = ['DEF'], array $headerCheckers = [], array $serializers = ['jwe_compact'], bool $is_public = true) |
||
213 | |||
214 | /** |
||
215 | * @param ContainerBuilder $container |
||
216 | * @param array $config |
||
217 | * @param string $element |
||
218 | */ |
||
219 | private static function updateJoseConfiguration(ContainerBuilder $container, array $config, string $element) |
||
228 | } |
||
229 |