summaryrefslogtreecommitdiffstats
path: root/lib/SAML2/LogoutRequest.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SAML2/LogoutRequest.php')
-rw-r--r--lib/SAML2/LogoutRequest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/SAML2/LogoutRequest.php b/lib/SAML2/LogoutRequest.php
index c2369f8..1a9cf1e 100644
--- a/lib/SAML2/LogoutRequest.php
+++ b/lib/SAML2/LogoutRequest.php
@@ -153,15 +153,16 @@ class SAML2_LogoutRequest extends SAML2_Request {
* Decrypt the NameID in the LogoutRequest.
*
* @param XMLSecurityKey $key The decryption key.
+ * @param array $blacklist Blacklisted decryption algorithms.
*/
- public function decryptNameId(XMLSecurityKey $key) {
+ public function decryptNameId(XMLSecurityKey $key, array $blacklist = array()) {
if ($this->encryptedNameId === NULL) {
/* No NameID to decrypt. */
return;
}
- $nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key);
+ $nameId = SAML2_Utils::decryptElement($this->encryptedNameId, $key, $blacklist);
SimpleSAML_Utilities::debugMessage($nameId, 'decrypt');
$this->nameId = SAML2_Utils::parseNameId($nameId);