private function IdentityProviders::parseEncryptionCertificate in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
1 call to IdentityProviders::parseEncryptionCertificate()
File
- src/
MetadataReader.php, line 134
Class
Namespace
Drupal\miniorange_samlCode
private function parseEncryptionCertificate($xml) {
$certNode = Utilities::xpQuery($xml, './ds:KeyInfo/ds:X509Data/ds:X509Certificate');
$certData = trim($certNode[0]->textContent);
$certData = str_replace(array(
"\r",
"\n",
"\t",
' ',
), '', $certData);
if (!empty($certNode)) {
array_push($this->encryptionCertificate, $certData);
}
}