You are here

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

Parameters

XMLSecurityKey $objKey:

Throws

Exception

File

src/XMLSecurityKey.php, line 1964

Class

XMLSecEnc

Namespace

Drupal\miniorange_saml

Code

public function encryptReferences($objKey) {
  $curRawNode = $this->rawNode;
  $curType = $this->type;
  foreach ($this->references as $name => $reference) {
    $this->encdoc = $reference["encnode"];
    $this->rawNode = $reference["node"];
    $this->type = $reference["type"];
    try {
      $encNode = $this
        ->encryptNode($objKey);
      $this->references[$name]["encnode"] = $encNode;
    } catch (Exception $e) {
      $this->rawNode = $curRawNode;
      $this->type = $curType;
      throw $e;
    }
  }
  $this->rawNode = $curRawNode;
  $this->type = $curType;
}