Skip to content
Snippets Groups Projects
Commit 111bb96e authored by Olav Morken's avatar Olav Morken
Browse files

SAMLBuilder: Use the new createKeyDescriptor() function.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2292 44740490-163a-0410-bde0-09ae8108e29a
parent ae6bab4b
No related branches found
No related tags found
No related merge requests found
......@@ -569,20 +569,9 @@ class SimpleSAML_Metadata_SAMLBuilder {
assert('in_array($use, array("encryption", "signing"), TRUE)');
assert('is_string($x509data)');
$keyDescriptor = new SAML2_XML_md_KeyDescriptor();
$keyDescriptor = SAML2_Utils::createKeyDescriptor($x509data);
$keyDescriptor->use = $use;
$rd->KeyDescriptor[] = $keyDescriptor;
$keyInfo = new SAML2_XML_ds_KeyInfo();
$keyDescriptor->KeyInfo = $keyInfo;
$x509Data = new SAML2_XML_ds_X509Data();
$keyInfo->info[] = $x509Data;
$x509Certificate = new SAML2_XML_ds_X509Certificate();
$x509Data->data[] = $x509Certificate;
$x509Certificate->certificate = $x509data;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment