Skip to content

Commit da1dc1b

Browse files
committed
Migrate to xsd-types
1 parent 800a56f commit da1dc1b

File tree

197 files changed

+501
-495
lines changed

Some content is hidden

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

197 files changed

+501
-495
lines changed

src/Assert/HMACOutputLengthTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\XMLSecurity\Assert;
66

77
use SimpleSAML\Assert\AssertionFailedException;
8-
use SimpleSAML\XML\Exception\SchemaViolationException;
8+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
99
use SimpleSAML\XMLSecurity\Exception\ProtocolViolationException;
1010

1111
use function intval;

src/TestUtils/SignedElementTestTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace SimpleSAML\XMLSecurity\TestUtils;
66

77
use DOMDocument;
8-
use SimpleSAML\XML\Type\Base64BinaryValue;
8+
use SimpleSAML\XMLSchema\Type\Builtin\Base64BinaryValue;
99
use SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmFactory;
1010
use SimpleSAML\XMLSecurity\Constants as C;
1111
use SimpleSAML\XMLSecurity\Exception\InvalidArgumentException;

src/Type/CryptoBinaryValue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace SimpleSAML\XMLSecurity\Type;
66

7-
use SimpleSAML\XML\Exception\SchemaViolationException;
8-
use SimpleSAML\XML\Type\Base64BinaryValue;
7+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
8+
use SimpleSAML\XMLSchema\Type\Builtin\Base64BinaryValue;
99
use SimpleSAML\XMLSecurity\Assert\Assert;
1010

1111
/**
@@ -17,7 +17,7 @@ class CryptoBinaryValue extends Base64BinaryValue
1717
* Validate the value.
1818
*
1919
* @param string $value
20-
* @throws \SimpleSAML\XML\Exception\SchemaViolationException on failure
20+
* @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
2121
* @return void
2222
*/
2323
protected function validateValue(string $value): void

src/Type/DigestValue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace SimpleSAML\XMLSecurity\Type;
66

7-
use SimpleSAML\XML\Exception\SchemaViolationException;
8-
use SimpleSAML\XML\Type\Base64BinaryValue;
7+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
8+
use SimpleSAML\XMLSchema\Type\Builtin\Base64BinaryValue;
99
use SimpleSAML\XMLSecurity\Assert\Assert;
1010

1111
/**
@@ -17,7 +17,7 @@ class DigestValue extends Base64BinaryValue
1717
* Validate the value.
1818
*
1919
* @param string $value
20-
* @throws \SimpleSAML\XML\Exception\SchemaViolationException on failure
20+
* @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
2121
* @return void
2222
*/
2323
protected function validateValue(string $value): void

src/Type/ECPointValue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SimpleSAML\XMLSecurity\Type;
66

7-
use SimpleSAML\XML\Exception\SchemaViolationException;
7+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
88
use SimpleSAML\XMLSecurity\Assert\Assert;
99
use SimpleSAML\XMLSecurity\Type\CryptoBinaryValue;
1010

@@ -17,7 +17,7 @@ class ECPointValue extends CryptoBinaryValue
1717
* Validate the value.
1818
*
1919
* @param string $value
20-
* @throws \SimpleSAML\XML\Exception\SchemaViolationException on failure
20+
* @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
2121
* @return void
2222
*/
2323
protected function validateValue(string $value): void

src/Type/HMACOutputLengthValue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace SimpleSAML\XMLSecurity\Type;
66

7-
use SimpleSAML\XML\Exception\SchemaViolationException;
8-
use SimpleSAML\XML\Type\IntegerValue;
7+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
8+
use SimpleSAML\XMLSchema\Type\Builtin\IntegerValue;
99
use SimpleSAML\XMLSecurity\Assert\Assert;
1010

1111
/**
@@ -17,7 +17,7 @@ class HMACOutputLengthValue extends IntegerValue
1717
* Validate the value.
1818
*
1919
* @param string $value
20-
* @throws \SimpleSAML\XML\Exception\SchemaViolationException on failure
20+
* @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
2121
* @throws \SimpleSAML\XMLSecurity\Exception\ProtocolViolationException when not devisible by 8
2222
* @return void
2323
*/

src/Type/KeySizeValue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace SimpleSAML\XMLSecurity\Type;
66

7-
use SimpleSAML\XML\Exception\SchemaViolationException;
8-
use SimpleSAML\XML\Type\IntegerValue;
7+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
8+
use SimpleSAML\XMLSchema\Type\Builtin\IntegerValue;
99
use SimpleSAML\XMLSecurity\Assert\Assert;
1010

1111
/**
@@ -17,7 +17,7 @@ class KeySizeValue extends IntegerValue
1717
* Validate the value.
1818
*
1919
* @param string $value
20-
* @throws \SimpleSAML\XML\Exception\SchemaViolationException on failure
20+
* @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
2121
* @return void
2222
*/
2323
protected function validateValue(string $value): void

src/XML/EncryptableElementTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SimpleSAML\XMLSecurity\XML;
66

7-
use SimpleSAML\XML\Type\{AnyURIValue, Base64BinaryValue};
7+
use SimpleSAML\XMLSchema\Type\Builtin\{AnyURIValue, Base64BinaryValue};
88
use SimpleSAML\XMLSecurity\Alg\Encryption\{EncryptionAlgorithmFactory, EncryptionAlgorithmInterface};
99
use SimpleSAML\XMLSecurity\Backend\EncryptionBackend;
1010
use SimpleSAML\XMLSecurity\Constants as C;

src/XML/EncryptedElementTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\XML\AbstractElement;
10-
use SimpleSAML\XML\Exception\{InvalidDOMElementException, TooManyElementsException};
10+
use SimpleSAML\XMLSchema\Exception\{InvalidDOMElementException, TooManyElementsException};
1111
use SimpleSAML\XMLSecurity\Alg\Encryption\{EncryptionAlgorithmFactory, EncryptionAlgorithmInterface};
1212
use SimpleSAML\XMLSecurity\Backend\EncryptionBackend;
1313
use SimpleSAML\XMLSecurity\Constants as C;

src/XML/SignableElementInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SimpleSAML\XMLSecurity\XML;
66

7-
use SimpleSAML\XML\Type\IDValue;
7+
use SimpleSAML\XMLSchema\Type\Builtin\IDValue;
88
use SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmInterface;
99
use SimpleSAML\XMLSecurity\XML\ds\KeyInfo;
1010

0 commit comments

Comments
 (0)