Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class EncryptedAssertion extends AbstractSamlElement implements |
||
20 | EncryptedElementInterface, |
||
21 | SchemaValidatableElementInterface |
||
22 | { |
||
23 | use EncryptedElementTrait; |
||
|
|||
24 | use SchemaValidatableElementTrait; |
||
25 | |||
26 | /** @var bool */ |
||
27 | protected bool $wasSignedAtConstruction = false; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * @inheritDoc |
||
32 | * |
||
33 | * @return \SimpleSAML\SAML2\XML\saml\Assertion |
||
34 | * @throws \Exception |
||
35 | */ |
||
36 | public function decrypt(EncryptionAlgorithmInterface $decryptor): Assertion |
||
37 | { |
||
38 | return Assertion::fromXML( |
||
39 | DOMDocumentFactory::fromString($this->decryptData($decryptor))->documentElement, |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function wasSignedAtConstruction(): bool |
||
50 | } |
||
51 | } |
||
52 |