You are here

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

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 src/XMLSecurityKey.php
XMLSecurityDSig::addReference in src/XMLSecurityKey.php
XMLSecurityDSig::addReferenceList in src/XMLSecurityKey.php
XMLSecurityDSig::appendToKeyInfo in src/XMLSecurityKey.php
This function appends a node to the KeyInfo.
XMLSecurityDSig::canonicalizeSignedInfo in src/XMLSecurityKey.php

... See full list

File

src/XMLSecurityKey.php, line 805

Class

XMLSecurityDSig

Namespace

Drupal\miniorange_saml

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;
}