public function SAML2_Assertion::decryptNameId in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
Decrypt the NameId of the subject in the assertion.
Parameters
XMLSecurityKey $key The decryption key.:
array $blacklist Blacklisted decryption algorithms.:
File
- includes/
Assertion.php, line 550
Class
Code
public function decryptNameId(XMLSecurityKey $key, array $blacklist = array()) {
if ($this->encryptedNameId === NULL) {
/* No NameID to decrypt. */
return;
}
$nameId = Utilities::decryptElement($this->encryptedNameId, $key, $blacklist);
Utilities::getContainer()
->debugMessage($nameId, 'decrypt');
$this->nameId = Utilities::parseNameId($nameId);
$this->encryptedNameId = NULL;
}