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