You are here

private function IdentityProviders::parseEncryptionCertificate in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

1 call to IdentityProviders::parseEncryptionCertificate()
IdentityProviders::parsex509Certificate in includes/MetadataReader.php

File

includes/MetadataReader.php, line 135

Class

IdentityProviders

Code

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);
  }
}