You are here

private function XMLSecurityDSig::getXPathObj in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

Returns the XPathObj or null if xPathCtx is set and sigNode is empty.

Return value

DOMXPath|null

9 calls to XMLSecurityDSig::getXPathObj()
XMLSecurityDSig::add509Cert in includes/XMLSecurityKey.php
XMLSecurityDSig::addReference in includes/XMLSecurityKey.php
XMLSecurityDSig::addReferenceList in includes/XMLSecurityKey.php
XMLSecurityDSig::appendToKeyInfo in includes/XMLSecurityKey.php
This function appends a node to the KeyInfo.
XMLSecurityDSig::canonicalizeSignedInfo in includes/XMLSecurityKey.php

... See full list

File

includes/XMLSecurityKey.php, line 838

Class

XMLSecurityDSig

Code

private function getXPathObj() {
  if (empty($this->xPathCtx) && !empty($this->sigNode)) {
    $xpath = new DOMXPath($this->sigNode->ownerDocument);
    $xpath
      ->registerNamespace('secdsig', self::XMLDSIGNS);
    $this->xPathCtx = $xpath;
  }
  return $this->xPathCtx;
}