コード例 #1
0
ファイル: Assertion.php プロジェクト: simplesamlphp/saml2
 /**
  * Decrypt the NameId of the subject in the assertion.
  *
  * @param XMLSecurityKey $key       The decryption key.
  * @param array          $blacklist Blacklisted decryption algorithms.
  */
 public function decryptNameId(XMLSecurityKey $key, array $blacklist = array())
 {
     if ($this->encryptedNameId === null) {
         /* No NameID to decrypt. */
         return;
     }
     $nameId = Utils::decryptElement($this->encryptedNameId, $key, $blacklist);
     Utils::getContainer()->debugMessage($nameId, 'decrypt');
     $this->nameId = Utils::parseNameId($nameId);
     $this->encryptedNameId = null;
 }