private function parseSignature(DOMElement $xml) : void
    {
        /** @var \DOMAttr[] $signatureMethod */
        $signatureMethod = Utils::xpQuery($xml, './ds:Signature/ds:SignedInfo/ds:SignatureMethod/@Algorithm');

        /* Validate the signature element of the message. */
        $sig = Utils::validateElement($xml);
        if ($sig !== false) {
            $this->wasSignedAtConstruction = true;
            $this->setCertificates($sig['Certificates']);
            $this->setSignatureData($sig);
            $this->setSignatureMethod($signatureMethod[0]->value);
        }
    }
private function parseSignature(DOMElement $xml) : void
    {
        /** @var \DOMAttr[] $signatureMethod */
        $signatureMethod = Utils::xpQuery($xml, './ds:Signature/ds:SignedInfo/ds:SignatureMethod/@Algorithm');

        /* Validate the signature element of the message. */
        $sig = Utils::validateElement($xml);
        if ($sig !== false) {
            $this->wasSignedAtConstruction = true;
            $this->setCertificates($sig['Certificates']);
            $this->setSignatureData($sig);
            $this->setSignatureMethod($signatureMethod[0]->value);
        }
    }
private function parseSignature ( DOMElement $ xml ) : void { /** @var \DOMAttr[] $signatureMethod */ $ signatureMethod = Utils :: xpQuery ( $ xml , './ds:Signature/ds:SignedInfo/ds:SignatureMethod/@Algorithm' ) ; /* Validate the signature element of the message. */ $ sig = Utils :: validateElement ( $ xml ) ; if ( $ sig !== false ) { $ this -> wasSignedAtConstruction = true ; $ this -> setCertificates ( $ sig [ 'Certificates' ] ) ; $ this -> setSignatureData ( $ sig ) ; $ this -> setSignatureMethod ( $ signatureMethod [ 0 ] -> value ) ; } }
Parse signature on assertion.

@param \DOMElement $xml The assertion XML element.
@return void
Parse signature on assertion .