Skip to content

Commit

Permalink
Add securitypolicy classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Dec 22, 2023
1 parent 0d6239f commit e878d62
Show file tree
Hide file tree
Showing 83 changed files with 330 additions and 87 deletions.
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/AbsXPathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\AbsXPath;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\AbsXPathTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\AbsXPath
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class AbsXPathTest extends AbstractQNameAssertionTypeTestCase
final class AbsXPathTest extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic128Rsa15Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic128Rsa15;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic128Rsa15Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic128Rsa15
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic128Rsa15Test extends AbstractQNameAssertionTypeTestCase
final class Basic128Rsa15Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic128Sha256Rsa15Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic128Sha256Rsa15;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic128Sha256Rsa15Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic128Sha256Rsa15
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic128Sha256Rsa15Test extends AbstractQNameAssertionTypeTestCase
final class Basic128Sha256Rsa15Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic128Sha256Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic128Sha256;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic128Sha256Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic128Sha256
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic128Sha256Test extends AbstractQNameAssertionTypeTestCase
final class Basic128Sha256Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic128Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic128;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic128Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic128
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic128Test extends AbstractQNameAssertionTypeTestCase
final class Basic128Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic192Rsa15Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic192Rsa15;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic192Rsa15Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic192Rsa15
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic192Rsa15Test extends AbstractQNameAssertionTypeTestCase
final class Basic192Rsa15Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic192Sha256Rsa15Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic192Sha256Rsa15;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic192Sha256Rsa15Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic192Sha256Rsa15
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic192Sha256Rsa15Test extends AbstractQNameAssertionTypeTestCase
final class Basic192Sha256Rsa15Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic192Sha256Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic192Sha256;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic192Sha256Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic192Sha256
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic192Sha256Test extends AbstractQNameAssertionTypeTestCase
final class Basic192Sha256Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic192Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic192;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic192Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic192
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic192Test extends AbstractQNameAssertionTypeTestCase
final class Basic192Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic256Rsa15Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic256Rsa15;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic256Rsa15Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic256Rsa15
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic256Rsa15Test extends AbstractQNameAssertionTypeTestCase
final class Basic256Rsa15Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic256Sha256Rsa15Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic256Sha256Rsa15;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic256Sha256Rsa15Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic256Sha256Rsa15
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic256Sha256Rsa15Test extends AbstractQNameAssertionTypeTestCase
final class Basic256Sha256Rsa15Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic256Sha256Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic256Sha256;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic256Sha256Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic256Sha256
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic256Sha256Test extends AbstractQNameAssertionTypeTestCase
final class Basic256Sha256Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/Basic256Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\Basic256;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\Basic256Test
*
* @covers \SimpleSAML\WSSecurity\XML\sp\Basic256
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class Basic256Test extends AbstractQNameAssertionTypeTestCase
final class Basic256Test extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/EncryptBeforeSigningTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\EncryptBeforeSigning;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\EncryptBeforeSigningTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\EncryptBeforeSigning
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class EncryptBeforeSigningTest extends AbstractQNameAssertionTypeTestCase
final class EncryptBeforeSigningTest extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/EncryptSignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\EncryptSignature;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\EncryptSignatureTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\EncryptSignature
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class EncryptSignatureTest extends AbstractQNameAssertionTypeTestCase
final class EncryptSignatureTest extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
5 changes: 4 additions & 1 deletion tests/WSSecurity/XML/sp/HashPasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace SimpleSAML\Test\WSSecurity\XML\sp;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\WSSecurity\XML\sp\HashPassword;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SchemaValidationTestTrait;
Expand All @@ -16,12 +17,14 @@
* Class \SimpleSAML\WSSecurity\XML\sp\HashPasswordTest
*
* @covers \SimpleSAML\WSSecurity\XML\sp\HashPassword
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractQNameAssertionType
* @covers \SimpleSAML\WSSecurity\XML\sp\AbstractSpElement
*
* @package tvdijen/ws-security
*/
final class HashPasswordTest extends AbstractQNameAssertionTypeTestCase
final class HashPasswordTest extends TestCase
{
use QNameAssertionTypeTestTrait;
use SchemaValidationTestTrait;
use SerializableElementTestTrait;

Expand Down
Loading

0 comments on commit e878d62

Please sign in to comment.