You are here

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

Return value

array

Throws

Exception

File

src/XMLSecurityKey.php, line 1229

Class

XMLSecurityDSig

Namespace

Drupal\miniorange_saml

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