You are here

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

Parameters

DOMNode $refNode:

Return value

null

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

File

src/XMLSecurityKey.php, line 1212

Class

XMLSecurityDSig

Namespace

Drupal\miniorange_saml

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