Subversion Repositories oidplus

Rev

Rev 868 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 868 Rev 1050
Line 200... Line 200...
200
            $this->rawNode = $reference["node"];
200
            $this->rawNode = $reference["node"];
201
            $this->type = $reference["type"];
201
            $this->type = $reference["type"];
202
            try {
202
            try {
203
                $encNode = $this->encryptNode($objKey);
203
                $encNode = $this->encryptNode($objKey);
204
                $this->references[$name]["encnode"] = $encNode;
204
                $this->references[$name]["encnode"] = $encNode;
205
            } catch (Exception $e) {
205
            } catch (\Exception $e) {
206
                $this->rawNode = $curRawNode;
206
                $this->rawNode = $curRawNode;
207
                $this->type = $curType;
207
                $this->type = $curType;
208
                throw $e;
208
                throw $e;
209
            }
209
            }
210
        }
210
        }
Line 391... Line 391...
391
            $nodeset = $xpath->query($query, $node);
391
            $nodeset = $xpath->query($query, $node);
392
            if ($encmeth = $nodeset->item(0)) {
392
            if ($encmeth = $nodeset->item(0)) {
393
                   $attrAlgorithm = $encmeth->getAttribute("Algorithm");
393
                   $attrAlgorithm = $encmeth->getAttribute("Algorithm");
394
                try {
394
                try {
395
                    $objKey = new XMLSecurityKey($attrAlgorithm, array('type' => 'private'));
395
                    $objKey = new XMLSecurityKey($attrAlgorithm, array('type' => 'private'));
396
                } catch (Exception $e) {
396
                } catch (\Exception $e) {
397
                    return null;
397
                    return null;
398
                }
398
                }
399
                return $objKey;
399
                return $objKey;
400
            }
400
            }
401
        }
401
        }