public function XMLSecEnc::encryptReferences in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
Parameters
XMLSecurityKey $objKey:
Throws
Exception
File
- includes/
XMLSecurityKey.php, line 1996
Class
Code
public function encryptReferences($objKey) {
$curRawNode = $this->rawNode;
$curType = $this->type;
foreach ($this->references as $name => $reference) {
$this->encdoc = $reference["encnode"];
$this->rawNode = $reference["node"];
$this->type = $reference["type"];
try {
$encNode = $this
->encryptNode($objKey);
$this->references[$name]["encnode"] = $encNode;
} catch (Exception $e) {
$this->rawNode = $curRawNode;
$this->type = $curType;
throw $e;
}
}
$this->rawNode = $curRawNode;
$this->type = $curType;
}