You are here

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

Parameters

string $name:

null|string $value:

Return value

DOMElement

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

File

src/XMLSecurityKey.php, line 880

Class

XMLSecurityDSig

Namespace

Drupal\miniorange_saml

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