You are here

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

Parameters

DOMNode $refNode:

Return value

null

1 call to XMLSecurityDSig::getRefNodeID()
XMLSecurityDSig::getRefIDs in includes/XMLSecurityKey.php

File

includes/XMLSecurityKey.php, line 1244

Class

XMLSecurityDSig

Code

public function getRefNodeID($refNode) {
  if ($uri = $refNode
    ->getAttribute("URI")) {
    $arUrl = parse_url($uri);
    if (empty($arUrl['path'])) {
      if ($identifier = $arUrl['fragment']) {
        return $identifier;
      }
    }
  }
  return null;
}