| @@ 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 = []) |
|
| 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 = new XML\saml\NameID($nameId); |
|
| 167 | ||
| 168 | $this->encryptedNameId = null; |
|
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * Retrieve the name identifier of the session that should be terminated. |
|
| @@ 801-814 (lines=14) @@ | ||
| 798 | * @param XMLSecurityKey $key The decryption key. |
|
| 799 | * @param array $blacklist Blacklisted decryption algorithms. |
|
| 800 | */ |
|
| 801 | public function decryptNameId(XMLSecurityKey $key, array $blacklist = []) |
|
| 802 | { |
|
| 803 | if ($this->encryptedNameId === null) { |
|
| 804 | /* No NameID to decrypt. */ |
|
| 805 | ||
| 806 | return; |
|
| 807 | } |
|
| 808 | ||
| 809 | $nameId = Utils::decryptElement($this->encryptedNameId, $key, $blacklist); |
|
| 810 | Utils::getContainer()->debugMessage($nameId, 'decrypt'); |
|
| 811 | $this->nameId = new XML\saml\NameID($nameId); |
|
| 812 | ||
| 813 | $this->encryptedNameId = null; |
|
| 814 | } |
|
| 815 | ||
| 816 | /** |
|
| 817 | * Did this Assertion contain encrypted Attributes? |
|
| @@ 705-717 (lines=13) @@ | ||
| 702 | * @param XMLSecurityKey $key The decryption key. |
|
| 703 | * @param array $blacklist Blacklisted decryption algorithms. |
|
| 704 | */ |
|
| 705 | public function decryptNameId(XMLSecurityKey $key, array $blacklist = []) |
|
| 706 | { |
|
| 707 | if ($this->encryptedNameId === null) { |
|
| 708 | /* No NameID to decrypt. */ |
|
| 709 | return; |
|
| 710 | } |
|
| 711 | ||
| 712 | $nameId = Utils::decryptElement($this->encryptedNameId, $key, $blacklist); |
|
| 713 | Utils::getContainer()->debugMessage($nameId, 'decrypt'); |
|
| 714 | $this->nameId = new XML\saml\NameID($nameId); |
|
| 715 | ||
| 716 | $this->encryptedNameId = null; |
|
| 717 | } |
|
| 718 | ||
| 719 | /** |
|
| 720 | * Retrieve the SubjectConfirmation elements we have in our Subject element. |
|