1818
1919namespace OpenConext \EngineBlock \Xml ;
2020
21- use EngineBlock_Saml2_IdGenerator ;
2221use InvalidArgumentException ;
2322use OpenConext \EngineBlock \Metadata \Factory \Collection \IdentityProviderEntityCollection ;
2423use OpenConext \EngineBlock \Metadata \Factory \Helper \IdentityProviderMetadataHelper ;
2726use OpenConext \EngineBlock \Metadata \Factory \ServiceProviderEntityInterface ;
2827use OpenConext \EngineBlock \Metadata \X509 \KeyPairFactory ;
2928use OpenConext \EngineBlock \Metadata \X509 \X509KeyPair ;
29+ use OpenConext \EngineBlock \Saml2 \IdGenerator as SamlIdGenerator ;
3030use OpenConext \EngineBlock \Service \TimeProvider \TimeProvider ;
3131use OpenConext \EngineBlockBundle \Localization \LanguageSupportProvider ;
3232use Twig \Environment ;
@@ -49,7 +49,7 @@ class MetadataRenderer
4949 private $ twig ;
5050
5151 /**
52- * @var EngineBlock_Saml2_IdGenerator
52+ * @var SamlIdGenerator
5353 */
5454 private $ samlIdGenerator ;
5555
@@ -83,7 +83,7 @@ class MetadataRenderer
8383 public function __construct (
8484 LanguageSupportProvider $ languageSupportProvider ,
8585 Environment $ twig ,
86- EngineBlock_Saml2_IdGenerator $ samlIdGenerator ,
86+ SamlIdGenerator $ samlIdGenerator ,
8787 KeyPairFactory $ keyPairFactory ,
8888 DocumentSigner $ documentSigner ,
8989 TimeProvider $ timeProvider ,
@@ -160,7 +160,7 @@ private function renderMetadataXmlServiceProvider(ServiceProviderEntityInterface
160160 }
161161
162162 $ params = [
163- 'id ' => $ this ->samlIdGenerator ->generate (self ::ID_PREFIX , EngineBlock_Saml2_IdGenerator ::ID_USAGE_SAML2_METADATA ),
163+ 'id ' => $ this ->samlIdGenerator ->generate (self ::ID_PREFIX , SamlIdGenerator ::ID_USAGE_SAML2_METADATA ),
164164 'validUntil ' => $ this ->getValidUntil (),
165165 'metadata ' => $ metadata ,
166166 'locales ' => $ this ->languageSupportProvider ->getSupportedLanguages (),
@@ -175,7 +175,7 @@ private function renderMetadataXmlIdentityProvider(IdentityProviderEntityInterfa
175175 $ metadata = new IdentityProviderMetadataHelper ($ idp , $ this ->languageSupportProvider );
176176
177177 $ params = [
178- 'id ' => $ this ->samlIdGenerator ->generate (self ::ID_PREFIX , EngineBlock_Saml2_IdGenerator ::ID_USAGE_SAML2_METADATA ),
178+ 'id ' => $ this ->samlIdGenerator ->generate (self ::ID_PREFIX , SamlIdGenerator ::ID_USAGE_SAML2_METADATA ),
179179 'validUntil ' => $ this ->getValidUntil (),
180180 'metadata ' => $ metadata ,
181181 'locales ' => $ this ->languageSupportProvider ->getSupportedLanguages (),
@@ -192,7 +192,7 @@ private function renderMetadataXmlIdentityProviderCollection(IdentityProviderEnt
192192 }
193193
194194 $ params = [
195- 'id ' => $ this ->samlIdGenerator ->generate (self ::ID_PREFIX , EngineBlock_Saml2_IdGenerator ::ID_USAGE_SAML2_METADATA ),
195+ 'id ' => $ this ->samlIdGenerator ->generate (self ::ID_PREFIX , SamlIdGenerator ::ID_USAGE_SAML2_METADATA ),
196196 'validUntil ' => $ this ->getValidUntil (),
197197 'metadataCollection ' => $ metadataCollection ,
198198 'locales ' => $ this ->languageSupportProvider ->getSupportedLanguages (),
0 commit comments