|
@@ 1141-1149 (lines=9) @@
|
| 1138 |
|
$refNode->appendChild($digestValue);
|
| 1139 |
|
}
|
| 1140 |
|
|
| 1141 |
|
public function addReference($node, $algorithm, $arTransforms=NULL, $options=NULL) {
|
| 1142 |
|
if ($xpath = $this->getXPathObj()) {
|
| 1143 |
|
$query = "./secdsig:SignedInfo";
|
| 1144 |
|
$nodeset = $xpath->query($query, $this->sigNode);
|
| 1145 |
|
if ($sInfo = $nodeset->item(0)) {
|
| 1146 |
|
$this->addRefInternal($sInfo, $node, $algorithm, $arTransforms, $options);
|
| 1147 |
|
}
|
| 1148 |
|
}
|
| 1149 |
|
}
|
| 1150 |
|
|
| 1151 |
|
public function addReferenceList($arNodes, $algorithm, $arTransforms=NULL, $options=NULL) {
|
| 1152 |
|
if ($xpath = $this->getXPathObj()) {
|
|
@@ 1151-1161 (lines=11) @@
|
| 1148 |
|
}
|
| 1149 |
|
}
|
| 1150 |
|
|
| 1151 |
|
public function addReferenceList($arNodes, $algorithm, $arTransforms=NULL, $options=NULL) {
|
| 1152 |
|
if ($xpath = $this->getXPathObj()) {
|
| 1153 |
|
$query = "./secdsig:SignedInfo";
|
| 1154 |
|
$nodeset = $xpath->query($query, $this->sigNode);
|
| 1155 |
|
if ($sInfo = $nodeset->item(0)) {
|
| 1156 |
|
foreach ($arNodes AS $node) {
|
| 1157 |
|
$this->addRefInternal($sInfo, $node, $algorithm, $arTransforms, $options);
|
| 1158 |
|
}
|
| 1159 |
|
}
|
| 1160 |
|
}
|
| 1161 |
|
}
|
| 1162 |
|
|
| 1163 |
|
public function addObject($data, $mimetype=NULL, $encoding=NULL) {
|
| 1164 |
|
$objNode = $this->createNewSignNode('Object');
|