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 $type |
||
98 | * @param array $parameters |
||
99 | */ |
||
100 | public static function addKey(ContainerBuilder $container, string $name, string $type, array $parameters) |
||
114 | |||
115 | /** |
||
116 | * @param ContainerBuilder $container |
||
117 | * @param string $name |
||
118 | * @param string $type |
||
119 | * @param array $parameters |
||
120 | */ |
||
121 | public static function addKeyset(ContainerBuilder $container, string $name, string $type, array $parameters) |
||
135 | |||
136 | /** |
||
137 | * @param ContainerBuilder $container |
||
138 | * @param string $name |
||
139 | * @param array $keyEncryptionAlgorithm |
||
140 | * @param array $contentEncryptionAlgorithms |
||
141 | * @param array $compressionMethods |
||
142 | * @param bool $is_public |
||
143 | */ |
||
144 | public static function addJWEBuilder(ContainerBuilder $container, string $name, array $keyEncryptionAlgorithm, array $contentEncryptionAlgorithms, array $compressionMethods = ['DEF'], bool $is_public = true) |
||
161 | |||
162 | /** |
||
163 | * @param ContainerBuilder $container |
||
164 | * @param string $name |
||
165 | * @param array $keyEncryptionAlgorithm |
||
166 | * @param array $contentEncryptionAlgorithms |
||
167 | * @param array $compressionMethods |
||
168 | * @param array $headerCheckers |
||
169 | * @param array $serializers |
||
170 | * @param bool $is_public |
||
171 | */ |
||
172 | public static function addJWELoader(ContainerBuilder $container, string $name, array $keyEncryptionAlgorithm, array $contentEncryptionAlgorithms, array $compressionMethods = ['DEF'], array $headerCheckers = [], array $serializers = ['jws_compact'], bool $is_public = true) |
||
191 | |||
192 | /** |
||
193 | * @param ContainerBuilder $container |
||
194 | * @param array $config |
||
195 | * @param string $element |
||
196 | */ |
||
197 | private static function updateJoseConfiguration(ContainerBuilder $container, array $config, string $element) |
||
206 | } |
||
207 |