| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait SignableElementTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Sign the given XML element. |
||
| 24 | * |
||
| 25 | * @param \SimpleSAML\XMLSecurity\XMLSecurityKey $signingKey The private key used for signing. |
||
| 26 | * @param array $certificates Any public key to be added to the ds:Signature |
||
| 27 | * @param \DOMNode|null $insertBefore A specific node in the DOM structure where the ds:Signature should be put in front. |
||
| 28 | * @return \DOMElement The signed element. |
||
| 29 | * @throws \Exception If an error occurs while trying to sign. |
||
| 30 | */ |
||
| 31 | private function toSignedXML(XMLSecurityKey $signingKey, array $certificates, DOMNode $insertBefore = null): DOMElement |
||
| 46 |