88use DOMElement ;
99use SimpleSAML \Assert \Assert ;
1010use SimpleSAML \SAML2 \Assert \Assert as SAMLAssert ;
11- use SimpleSAML \SAML2 \Compat \ContainerSingleton ;
1211use SimpleSAML \SAML2 \Constants as C ;
1312use SimpleSAML \SAML2 \Exception \ProtocolViolationException ;
1413use SimpleSAML \SAML2 \Utils \XPath ;
14+ use SimpleSAML \SAML2 \XML \EncryptableElementTrait ;
1515use SimpleSAML \SAML2 \XML \SignableElementTrait ;
1616use SimpleSAML \SAML2 \XML \SignedElementTrait ;
1717use SimpleSAML \XML \Exception \InvalidDOMElementException ;
2121use SimpleSAML \XMLSecurity \Backend \EncryptionBackend ;
2222use SimpleSAML \XMLSecurity \XML \ds \Signature ;
2323use SimpleSAML \XMLSecurity \XML \EncryptableElementInterface ;
24- use SimpleSAML \XMLSecurity \XML \EncryptableElementTrait ;
2524use SimpleSAML \XMLSecurity \XML \SignableElementInterface ;
2625use SimpleSAML \XMLSecurity \XML \SignedElementInterface ;
2726
@@ -40,7 +39,10 @@ final class Assertion extends AbstractSamlElement implements
4039 SignableElementInterface,
4140 SignedElementInterface
4241{
43- use EncryptableElementTrait;
42+ use EncryptableElementTrait {
43+ EncryptableElementTrait::getBlacklistedAlgorithms insteadof SignedElementTrait;
44+ EncryptableElementTrait::getBlacklistedAlgorithms insteadof SignableElementTrait;
45+ }
4446 use SignableElementTrait;
4547 use SignedElementTrait;
4648
@@ -220,13 +222,6 @@ protected function getOriginalXML(): DOMElement
220222 }
221223
222224
223- public function getBlacklistedAlgorithms (): ?array
224- {
225- $ container = ContainerSingleton::getInstance ();
226- return $ container ->getBlacklistedEncryptionAlgorithms ();
227- }
228-
229-
230225 public function getEncryptionBackend (): ?EncryptionBackend
231226 {
232227 // return the encryption backend you want to use,
0 commit comments