public function XMLSecurityDSig::canonicalizeSignedInfo in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
Return value
null|string
File
- includes/
XMLSecurityKey.php, line 1006
Class
Code
public function canonicalizeSignedInfo() {
$doc = $this->sigNode->ownerDocument;
$canonicalmethod = null;
if ($doc) {
$xpath = $this
->getXPathObj();
$query = "./secdsig:SignedInfo";
$nodeset = $xpath
->query($query, $this->sigNode);
if ($signInfoNode = $nodeset
->item(0)) {
$query = "./secdsig:CanonicalizationMethod";
$nodeset = $xpath
->query($query, $signInfoNode);
if ($canonNode = $nodeset
->item(0)) {
$canonicalmethod = $canonNode
->getAttribute('Algorithm');
}
$this->signedInfo = $this
->canonicalizeData($signInfoNode, $canonicalmethod);
return $this->signedInfo;
}
}
return null;
}