You are here

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

Return value

array

Throws

Exception

File

includes/XMLSecurityKey.php, line 1261

Class

XMLSecurityDSig

Code

public function getRefIDs() {
  $refids = array();
  $xpath = $this
    ->getXPathObj();
  $query = "./secdsig:SignedInfo[1]/secdsig:Reference";
  $nodeset = $xpath
    ->query($query, $this->sigNode);
  if ($nodeset->length == 0) {
    throw new Exception("Reference nodes not found");
  }
  foreach ($nodeset as $refNode) {
    $refids[] = $this
      ->getRefNodeID($refNode);
  }
  return $refids;
}