public function toXML(DOMElement $parent) : DOMElement
    {
        return Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:X509Certificate', $this->getCertificate());
    }
public function toXML(DOMElement $parent) : DOMElement
    {
        return Utils::addString($parent, XMLSecurityDSig::XMLDSIGNS, 'ds:X509Certificate', $this->getCertificate());
    }
public function toXML ( DOMElement $ parent ) : DOMElement { return Utils :: addString ( $ parent , XMLSecurityDSig :: XMLDSIGNS , 'ds:X509Certificate' , $ this -> getCertificate ( ) ) ; }
Convert this X509Certificate element to XML.

@param \DOMElement $parent The element we should append this X509Certificate element to.
@return \DOMElement
Convert this X509Certificate element to XML .