Add warning comment to metadata.
authorScott Cantor <cantor.2@osu.edu>
Mon, 15 Oct 2012 15:39:58 +0000 (15:39 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 15 Oct 2012 15:39:58 +0000 (15:39 +0000)
shibsp/handler/impl/MetadataGenerator.cpp

index a2e5e73..79c92e2 100644 (file)
@@ -674,6 +674,8 @@ pair<bool,long> MetadataGenerator::processMessage(
             // Sign while marshalling.
             vector<Signature*> sigs(1,sig);
             prettyentity->marshall(prettydoc,&sigs,cred);
+            s << "<!--" << endl << "This is example metadata only. Do *NOT* supply it as is without review,"
+                << endl << "and do *NOT* provide it in real time to your partners." << endl << " -->" << endl;
             s << *prettyentity;
         }
         else {
@@ -682,6 +684,8 @@ pair<bool,long> MetadataGenerator::processMessage(
     }
     else {
         // Pretty-print it directly to client.
+        s << "<!--" << endl << "This is example metadata only. Do *NOT* supply it as is without review,"
+            << endl << "and do *NOT* provide it in real time to your partners." << endl << " -->";
         XMLHelper::serialize(entity->marshall(), s, true);
     }