You are here

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

Parameters

string $name:

null|string $value:

Return value

DOMElement

4 calls to XMLSecurityDSig::createNewSignNode()
XMLSecurityDSig::addObject in includes/XMLSecurityKey.php
XMLSecurityDSig::addRefInternal in includes/XMLSecurityKey.php
XMLSecurityDSig::setCanonicalMethod in includes/XMLSecurityKey.php
XMLSecurityDSig::sign in includes/XMLSecurityKey.php

File

includes/XMLSecurityKey.php, line 913

Class

XMLSecurityDSig

Code

public function createNewSignNode($name, $value = null) {
  $doc = $this->sigNode->ownerDocument;
  if (!is_null($value)) {
    $node = $doc
      ->createElementNS(self::XMLDSIGNS, $this->prefix . $name, $value);
  }
  else {
    $node = $doc
      ->createElementNS(self::XMLDSIGNS, $this->prefix . $name);
  }
  return $node;
}