| @@ 637-649 (lines=13) @@ | ||
| 634 | * @param XMLSecurityKey $key The decryption key. |
|
| 635 | * @param array $blacklist Blacklisted decryption algorithms. |
|
| 636 | */ |
|
| 637 | public function decryptNameId(XMLSecurityKey $key, array $blacklist = array()) |
|
| 638 | { |
|
| 639 | if ($this->encryptedNameId === null) { |
|
| 640 | /* No NameID to decrypt. */ |
|
| 641 | return; |
|
| 642 | } |
|
| 643 | ||
| 644 | $nameId = Utils::decryptElement($this->encryptedNameId, $key, $blacklist); |
|
| 645 | Utils::getContainer()->debugMessage($nameId, 'decrypt'); |
|
| 646 | $this->nameId = Utils::parseNameId($nameId); |
|
| 647 | ||
| 648 | $this->encryptedNameId = null; |
|
| 649 | } |
|
| 650 | ||
| 651 | /** |
|
| 652 | * Retrieve the SubjectConfirmation elements we have in our Subject element. |
|
| @@ 156-169 (lines=14) @@ | ||
| 153 | * @param XMLSecurityKey $key The decryption key. |
|
| 154 | * @param array $blacklist Blacklisted decryption algorithms. |
|
| 155 | */ |
|
| 156 | public function decryptNameId(XMLSecurityKey $key, array $blacklist = array()) |
|
| 157 | { |
|
| 158 | if ($this->encryptedNameId === null) { |
|
| 159 | /* No NameID to decrypt. */ |
|
| 160 | ||
| 161 | return; |
|
| 162 | } |
|
| 163 | ||
| 164 | $nameId = Utils::decryptElement($this->encryptedNameId, $key, $blacklist); |
|
| 165 | Utils::getContainer()->debugMessage($nameId, 'decrypt'); |
|
| 166 | $this->nameId = Utils::parseNameId($nameId); |
|
| 167 | ||
| 168 | $this->encryptedNameId = null; |
|
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * Retrieve the name identifier of the session that should be terminated. |
|
| @@ 741-754 (lines=14) @@ | ||
| 738 | * @param XMLSecurityKey $key The decryption key. |
|
| 739 | * @param array $blacklist Blacklisted decryption algorithms. |
|
| 740 | */ |
|
| 741 | public function decryptNameId(XMLSecurityKey $key, array $blacklist = array()) |
|
| 742 | { |
|
| 743 | if ($this->encryptedNameId === null) { |
|
| 744 | /* No NameID to decrypt. */ |
|
| 745 | ||
| 746 | return; |
|
| 747 | } |
|
| 748 | ||
| 749 | $nameId = Utils::decryptElement($this->encryptedNameId, $key, $blacklist); |
|
| 750 | Utils::getContainer()->debugMessage($nameId, 'decrypt'); |
|
| 751 | $this->nameId = Utils::parseNameId($nameId); |
|
| 752 | ||
| 753 | $this->encryptedNameId = null; |
|
| 754 | } |
|
| 755 | ||
| 756 | /** |
|
| 757 | * Did this Assertion contain encrypted Attributes? |
|