Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit fe9e488

Browse files
committed
Offload wsse/wsu elements to new xml-wss-core library
1 parent bf8f727 commit fe9e488

101 files changed

Lines changed: 62 additions & 3276 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

classes/element.registry.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -304,18 +304,6 @@
304304
'PolicyAttachment' => '\SimpleSAML\WSSecurity\XML\wsp\PolicyAttachment',
305305
'PolicyReference' => '\SimpleSAML\WSSecurity\XML\wsp\PolicyReference',
306306
],
307-
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' => [
308-
'BinarySecurityToken' => '\SimpleSAML\WSSecurity\XML\wsse\BinarySecurityToken',
309-
'Embedded' => '\SimpleSAML\WSSecurity\XML\wsse\Embedded',
310-
'KeyIdentifier' => '\SimpleSAML\WSSecurity\XML\wsse\KeyIdentifier',
311-
'Nonce' => '\SimpleSAML\WSSecurity\XML\wsse\Nonce',
312-
'Password' => '\SimpleSAML\WSSecurity\XML\wsse\Password',
313-
'Reference' => '\SimpleSAML\WSSecurity\XML\wsse\Reference',
314-
'Security' => '\SimpleSAML\WSSecurity\XML\wsse\Security',
315-
'SecurityTokenReference' => '\SimpleSAML\WSSecurity\XML\wsse\SecurityTokenReference',
316-
'TransformationParameters' => '\SimpleSAML\WSSecurity\XML\wsse\TransformationParameters',
317-
'UsernameToken' => '\SimpleSAML\WSSecurity\XML\wsse\UsernameToken',
318-
],
319307
'http://schemas.xmlsoap.org/ws/2005/02/trust' => [
320308
'AllowPostdating' => '\SimpleSAML\WSSecurity\XML\wst_200502\AllowPostdating',
321309
'AuthenticationType' => '\SimpleSAML\WSSecurity\XML\wst_200502\AuthenticationType',
@@ -417,11 +405,6 @@
417405
'UseKey' => '\SimpleSAML\WSSecurity\XML\wst_200512\UseKey',
418406
'ValidateTarget' => '\SimpleSAML\WSSecurity\XML\wst_200512\ValidateTarget',
419407
],
420-
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' => [
421-
'Created' => '\SimpleSAML\WSSecurity\XML\wsu\Created',
422-
'Expires' => '\SimpleSAML\WSSecurity\XML\wsu\Expires',
423-
'Timestamp' => '\SimpleSAML\WSSecurity\XML\wsu\Timestamp',
424-
],
425408
'http://schemas.xmlsoap.org/ws/2004/09/mex' => [
426409
'Dialect' => '\SimpleSAML\WSSecurity\XML\wsx\Dialect',
427410
'GetMetadata' => '\SimpleSAML\WSSecurity\XML\wsx\GetMetadata',

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"simplesamlphp/xml-common": "~2.4",
2020
"simplesamlphp/xml-security": "~2.0",
2121
"simplesamlphp/xml-soap": "~2.0",
22-
"simplesamlphp/xml-ws-addressing": "~1.0"
22+
"simplesamlphp/xml-ws-addressing": "~1.0",
23+
"simplesamlphp/xml-wss-core": "~1.0"
2324
},
2425
"require-dev": {
2526
"simplesamlphp/simplesamlphp-test-framework": "~1.10"

src/Assert/Assert.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88

99
/**
1010
* @package simplesamlphp/ws-security
11-
*
12-
* @method static void validWSUDateTime(mixed $value, string $message = '', string $exception = '')
13-
* @method static void allWSUDateTime(mixed $value, string $message = '', string $exception = '')
14-
* @method static void nullOrValueWSUDateTime(mixed $value, string $message = '', string $exception = '')
1511
*/
1612
class Assert extends BaseAssert
1713
{
18-
use WSUDateTimeTrait;
1914
}

src/Assert/WSUDateTimeTrait.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Utils/XPath.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public static function getXPath(DOMNode $node, bool $autoregister = false): DOMX
3535
$xp->registerNamespace('policy', C::NS_POLICY);
3636
$xp->registerNamespace('sp11', C::NS_SEC_POLICY_11);
3737
$xp->registerNamespace('sp12', C::NS_SEC_POLICY_12);
38-
$xp->registerNamespace('wsse', C::NS_SEC_EXT);
39-
$xp->registerNamespace('wsu', C::NS_SEC_UTIL);
4038

4139
return $xp;
4240
}

src/XML/wsp/Policy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
namespace SimpleSAML\WSSecurity\XML\wsp;
66

77
use DOMElement;
8+
use SimpleSAML\WebServices\Security\Type\IDValue;
89
use SimpleSAML\WSSecurity\Assert\Assert;
910
use SimpleSAML\WSSecurity\Constants as C;
10-
use SimpleSAML\WSSecurity\XML\wsu\Type\IDValue;
1111
use SimpleSAML\XML\Chunk;
1212
use SimpleSAML\XML\ExtendableAttributesTrait;
1313
use SimpleSAML\XML\SchemaValidatableElementInterface;
@@ -40,7 +40,7 @@ final class Policy extends AbstractOperatorContentType implements SchemaValidata
4040
* \SimpleSAML\WSSecurity\XML\wsp\PolicyReference)[] $operatorContent
4141
* @param \SimpleSAML\XML\SerializableElementInterface[] $children
4242
* @param \SimpleSAML\XMLSchema\Type\AnyURIValue|null $Name
43-
* @param \SimpleSAML\WSSecurity\XML\wsu\Type\IDValue|null $Id
43+
* @param \SimpleSAML\WebServices\Security\Type\IDValue|null $Id
4444
* @param \SimpleSAML\XML\Attribute[] $namespacedAttributes
4545
*/
4646
public function __construct(
@@ -57,7 +57,7 @@ public function __construct(
5757

5858

5959
/**
60-
* @return \SimpleSAML\WSSecurity\XML\wsu\Type\IDValue|null
60+
* @return \SimpleSAML\WebServices\Security\Type\IDValue|null
6161
*/
6262
public function getId(): ?IDValue
6363
{

src/XML/wsse/AbstractAttributedString.php

Lines changed: 0 additions & 116 deletions
This file was deleted.

src/XML/wsse/AbstractBinarySecurityTokenType.php

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)