Skip to content

Commit

Permalink
Add wst classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 23, 2024
1 parent 8b35b34 commit f6ee2a1
Show file tree
Hide file tree
Showing 51 changed files with 12 additions and 80 deletions.
4 changes: 2 additions & 2 deletions src/XML/wst/AbstractParticipantType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\Exception\MissingElementException;
use SimpleSAML\XML\Exception\TooManyElementsException;
use SimpleSAML\XML\XsNamespace as NS;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\SerializableElementInterface;
use SimpleSAML\XML\XsNamespace as NS;

/**
* Class defining the ParticipantType element
Expand Down
3 changes: 1 addition & 2 deletions src/XML/wst/AbstractParticipantsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\Exception\TooManyElementsException;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\XsNamespace as NS;
use SimpleSAML\XML\SerializableElementInterface;

/**
* Class defining the ParticipantsType element
Expand Down
1 change: 0 additions & 1 deletion src/XML/wsu/AbstractAttributedURI.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\Exception\SchemaViolationException;
use SimpleSAML\XML\ExtendableAttributesTrait;
use SimpleSAML\XML\URIElementTrait;
use SimpleSAML\XML\XsNamespace as NS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\AdditionalContextProcessed;
Expand Down
3 changes: 1 addition & 2 deletions tests/WSSecurity/XML/fed/AttributeServiceEndpointsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\AttributeServiceEndpoints;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\EndpointReference;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\WSSecurity\XML\fed\AttributeServiceEndpoints;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/AuthenticationTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\Test\WSSecurity\XML\sp\NestedPolicyTypeTestTrait;
Expand Down
3 changes: 0 additions & 3 deletions tests/WSSecurity/XML/fed/FederationMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Assert\AssertionFailedException;
use SimpleSAML\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\Federation;
use SimpleSAML\WSSecurity\XML\fed\FederationMetadata;
use SimpleSAML\XML\Attribute as XMLAttribute;
Expand Down
3 changes: 0 additions & 3 deletions tests/WSSecurity/XML/fed/FederationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Assert\AssertionFailedException;
use SimpleSAML\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\Federation;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
Expand Down
3 changes: 0 additions & 3 deletions tests/WSSecurity/XML/fed/FilterPseudonymsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DateTimeImmutable;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Assert\AssertionFailedException;
use SimpleSAML\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\FilterPseudonyms;
use SimpleSAML\WSSecurity\XML\fed\PseudonymBasis;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/FreshnessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\Freshness;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/IssuesSpecificPolicyFaultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\IssuesSpecificPolicyFault;
Expand Down
3 changes: 1 addition & 2 deletions tests/WSSecurity/XML/fed/PassiveRequestorEndpointsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\PassiveRequestorEndpoints;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\EndpointReference;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\WSSecurity\XML\fed\PassiveRequestorEndpoints;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/ProofTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\ProofToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
Expand Down
3 changes: 1 addition & 2 deletions tests/WSSecurity/XML/fed/PseudonymServiceEndpointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\PseudonymServiceEndpoint;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\EndpointReference;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\WSSecurity\XML\fed\PseudonymServiceEndpoint;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
3 changes: 0 additions & 3 deletions tests/WSSecurity/XML/fed/PseudonymTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DateTimeImmutable;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Assert\AssertionFailedException;
use SimpleSAML\WSSecurity\Constants;
use SimpleSAML\WSSecurity\XML\fed\ProofToken;
use SimpleSAML\WSSecurity\XML\fed\Pseudonym;
use SimpleSAML\WSSecurity\XML\fed\PseudonymBasis;
Expand Down
3 changes: 0 additions & 3 deletions tests/WSSecurity/XML/fed/ReferenceEPRTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@

use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Assert\AssertionFailedException;
use SimpleSAML\WSSecurity\Constants;
use SimpleSAML\WSSecurity\XML\fed\ReferenceEPR;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\WSSecurity\XML\wsa\ReplyTo;
use SimpleSAML\XML\Attribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/ReferenceToken11Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\ReferenceToken11;
Expand Down
9 changes: 3 additions & 6 deletions tests/WSSecurity/XML/fed/ReferenceTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Assert\AssertionFailedException;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\WSSecurity\XML\wsa\ReplyTo;
use SimpleSAML\WSSecurity\XML\fed\ReferenceDigest;
use SimpleSAML\WSSecurity\XML\fed\ReferenceEPR;
use SimpleSAML\WSSecurity\XML\fed\ReferenceToken;
use SimpleSAML\WSSecurity\XML\fed\ReferenceType;
use SimpleSAML\WSSecurity\XML\fed\SerialNo;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/RequestProofTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\RequestProofToken;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/RequestPseudonymTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\RequestPseudonym;
use SimpleSAML\XML\Attribute as XMLAttribute;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/RequireBearerTokensTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\RequireBearerTokens;
Expand Down
4 changes: 1 addition & 3 deletions tests/WSSecurity/XML/fed/RequireReferenceTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\Utils\XPath;
use SimpleSAML\WSSecurity\XML\sp\IncludeToken;
use SimpleSAML\WSSecurity\XML\fed\RequireReferenceToken;
use SimpleSAML\WSSecurity\XML\sp\IncludeToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/RequireSharedCookiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\RequireSharedCookies;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/RequireSignedTokensTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\RequireSignedTokens;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\RequiresGenericClaimDialect;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/SecurityTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\SecurityToken;
use SimpleSAML\XML\Attribute as XMLAttribute;
Expand Down
2 changes: 0 additions & 2 deletions tests/WSSecurity/XML/fed/SignOutBasisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\fed\SignOutBasis;
use SimpleSAML\XML\Attribute;
use SimpleSAML\XML\Chunk;
Expand Down
2 changes: 0 additions & 2 deletions tests/WSSecurity/XML/fed/SignOutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\Constants;
use SimpleSAML\WSSecurity\XML\fed\Realm;
use SimpleSAML\WSSecurity\XML\fed\SignOut;
use SimpleSAML\WSSecurity\XML\fed\SignOutBasis;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\SingleSignOutNotificationEndpoints;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\EndpointReference;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\WSSecurity\XML\fed\SingleSignOutNotificationEndpoints;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\fed\SingleSignOutSubscriptionEndpoints;
use SimpleSAML\WSSecurity\XML\wsa\Address;
use SimpleSAML\WSSecurity\XML\wsa\EndpointReference;
use SimpleSAML\WSSecurity\XML\wsa\Metadata;
use SimpleSAML\WSSecurity\XML\wsa\ReferenceParameters;
use SimpleSAML\WSSecurity\XML\fed\SingleSignOutSubscriptionEndpoints;
use SimpleSAML\XML\Attribute as XMLAttribute;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/fed/WebBindingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\fed;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\Test\WSSecurity\XML\sp\NestedPolicyTypeTestTrait;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/wst/AllowPostdatingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\wst;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\wst\AllowPostdating;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/wst/AuthenticationTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\wst;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\wst\AuthenticationType;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/wst/CanonicalizationAlgorithmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\wst;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\wst\CanonicalizationAlgorithm;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/wst/ChallengeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\wst;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\wst\Challenge;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/wst/CombinedHashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\wst;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\wst\CombinedHash;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/wst/ComputedKeyAlgorithmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\wst;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\Test\WSSecurity\Constants as C;
use SimpleSAML\WSSecurity\XML\wst\ComputedKeyAlgorithm;
Expand Down
1 change: 0 additions & 1 deletion tests/WSSecurity/XML/wst/DelegatableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\WSSecurity\XML\wst;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\wst\Delegatable;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
Loading

0 comments on commit f6ee2a1

Please sign in to comment.