private function IdentityProviders::parseSigningCertificate in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
1 call to IdentityProviders::parseSigningCertificate()
File
- includes/
MetadataReader.php, line 126
Class
Code
private function parseSigningCertificate($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->signingCertificate, Utilities::sanitize_certificate($certData));
}
}