File tree Expand file tree Collapse file tree 4 files changed +21
-15
lines changed
Expand file tree Collapse file tree 4 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace SimpleSAML \SAML2 \XML \saml ;
6+
7+ use SimpleSAML \SAML2 \XML \EncryptedElementTrait ;
8+ use SimpleSAML \XMLSecurity \XML \EncryptedElementInterface ;
9+
10+ /**
11+ * Class representing an encrypted element.
12+ *
13+ * @package simplesamlphp/saml2
14+ */
15+ abstract class AbstractEncryptedElement extends AbstractSamlElement implements EncryptedElementInterface
16+ {
17+ use EncryptedElementTrait;
18+ }
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \SAML2 \XML \saml ;
66
7- use SimpleSAML \SAML2 \XML \EncryptedElementTrait ;
87use SimpleSAML \XML \DOMDocumentFactory ;
98use SimpleSAML \XML \SchemaValidatableElementInterface ;
109use SimpleSAML \XML \SchemaValidatableElementTrait ;
1110use SimpleSAML \XMLSecurity \Alg \Encryption \EncryptionAlgorithmInterface ;
12- use SimpleSAML \XMLSecurity \XML \EncryptedElementInterface ;
1311
1412/**
1513 * Class handling encrypted assertions.
1614 *
1715 * @package simplesamlphp/saml2
1816 */
19- final class EncryptedAssertion extends AbstractSamlElement implements
20- EncryptedElementInterface,
17+ final class EncryptedAssertion extends AbstractEncryptedElement implements
2118 SchemaValidatableElementInterface
2219{
23- use EncryptedElementTrait;
2420 use SchemaValidatableElementTrait;
2521
2622
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \SAML2 \XML \saml ;
66
7- use SimpleSAML \SAML2 \XML \EncryptedElementTrait ;
87use SimpleSAML \XML \DOMDocumentFactory ;
98use SimpleSAML \XML \SchemaValidatableElementInterface ;
109use SimpleSAML \XML \SchemaValidatableElementTrait ;
1110use SimpleSAML \XMLSecurity \Alg \Encryption \EncryptionAlgorithmInterface ;
12- use SimpleSAML \XMLSecurity \XML \EncryptedElementInterface ;
1311
1412/**
1513 * Class handling encrypted attributes.
1614 *
1715 * @package simplesamlphp/saml2
1816 */
19- class EncryptedAttribute extends AbstractSamlElement implements
20- EncryptedElementInterface,
17+ final class EncryptedAttribute extends AbstractEncryptedElement implements
2118 SchemaValidatableElementInterface
2219{
23- use EncryptedElementTrait;
2420 use SchemaValidatableElementTrait;
2521
2622
Original file line number Diff line number Diff line change 55namespace SimpleSAML \SAML2 \XML \saml ;
66
77use InvalidArgumentException ;
8- use SimpleSAML \SAML2 \XML \EncryptedElementTrait ;
98use SimpleSAML \XML \DOMDocumentFactory ;
109use SimpleSAML \XML \SchemaValidatableElementInterface ;
1110use SimpleSAML \XML \SchemaValidatableElementTrait ;
1211use SimpleSAML \XML \SerializableElementInterface ;
1312use SimpleSAML \XMLSecurity \Alg \Encryption \EncryptionAlgorithmInterface ;
14- use SimpleSAML \XMLSecurity \XML \EncryptedElementInterface ;
1513
1614use function implode ;
1715
2018 *
2119 * @package simplesamlphp/saml2
2220 */
23- class EncryptedID extends AbstractSamlElement implements
24- EncryptedElementInterface,
21+ final class EncryptedID extends AbstractEncryptedElement implements
2522 IdentifierInterface,
2623 SchemaValidatableElementInterface
2724{
28- use EncryptedElementTrait;
2925 use SchemaValidatableElementTrait;
3026
3127
You can’t perform that action at this time.
0 commit comments