You are here

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

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

File

src/MetadataReader.php, line 134

Class

IdentityProviders

Namespace

Drupal\miniorange_saml

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