@@ -35,11 +35,6 @@ abstract class AbstractIssuedTokenType extends AbstractSpElement
3535 /** The namespace-attribute for the xs:anyAttribute element */
3636 public const string XS_ANY_ATTR_NAMESPACE = NS ::ANY ;
3737
38- /** The exclusions for the xs:anyAttribute element */
39- public const array XS_ANY_ATTR_EXCLUSIONS = [
40- ['http://schemas.xmlsoap.org/ws/2005/07/securitypolicy ' , 'IncludeToken ' ],
41- ];
42-
4338
4439 /**
4540 * IssuedTokenType constructor.
@@ -48,18 +43,16 @@ abstract class AbstractIssuedTokenType extends AbstractSpElement
4843 * \SimpleSAML\WebServices\SecurityPolicy\XML\sp_200507\RequestSecurityTokenTemplate
4944 * ) $requestSecurityTokenTemplate
5045 * @param \SimpleSAML\WebServices\SecurityPolicy\XML\sp_200507\Issuer|null $issuer
51- * @param \SimpleSAML\WebServices\SecurityPolicy\XML\sp_200507\Type\IncludeTokenValue|null $includeToken
5246 * @param \SimpleSAML\XML\SerializableElementInterface[] $elts
5347 * @param list<\SimpleSAML\XML\Attribute> $namespacedAttributes
5448 */
5549 final public function __construct (
5650 protected RequestSecurityTokenTemplate $ requestSecurityTokenTemplate ,
5751 protected ?Issuer $ issuer = null ,
58- ?IncludeTokenValue $ includeToken = null ,
5952 array $ elts = [],
6053 array $ namespacedAttributes = [],
6154 ) {
62- $ this ->setIncludeToken ($ includeToken );
55+ $ this ->setIncludeToken ($ namespacedAttributes );
6356 $ this ->setElements ($ elts );
6457 $ this ->setAttributesNS ($ namespacedAttributes );
6558 }
@@ -114,7 +107,6 @@ public static function fromXML(DOMElement $xml): static
114107 return new static (
115108 $ requestSecurityTokenTemplate [0 ],
116109 array_pop ($ issuer ),
117- self ::getOptionalAttribute ($ xml , 'IncludeToken ' , IncludeTokenValue::class, null ),
118110 self ::getChildElementsFromXML ($ xml ),
119111 self ::getAttributesNSFromXML ($ xml ),
120112 );
@@ -128,10 +120,6 @@ public function toXML(?DOMElement $parent = null): DOMElement
128120 {
129121 $ e = $ this ->instantiateParentElement ($ parent );
130122
131- if ($ this ->getIncludeToken () !== null ) {
132- $ e ->setAttribute ('IncludeToken ' , $ this ->getIncludeToken ()->getValue ());
133- }
134-
135123 if ($ this ->getIssuer () !== null ) {
136124 $ this ->getIssuer ()->toXML ($ e );
137125 }
0 commit comments