SAML 1.x artifact bits
[shibboleth/cpp-opensaml.git] / saml / SAMLConfig.h
index dca8f15..0c2f7be 100644 (file)
@@ -26,7 +26,6 @@
 #include <saml/base.h>\r
 \r
 #include <xmltooling/PluginManager.h>\r
-#include <xmltooling/unicode.h>\r
 #include <xmltooling/XMLToolingConfig.h>\r
 \r
 #include <string>\r
@@ -37,6 +36,8 @@
  */\r
 namespace opensaml {\r
 \r
+    class SAML_API SAMLArtifact;\r
+\r
     namespace saml2md {\r
         class SAML_API MetadataProvider;\r
         class SAML_API MetadataFilter;\r
@@ -106,6 +107,16 @@ namespace opensaml {
         virtual XMLCh* generateIdentifier()=0;\r
         \r
         /**\r
+         * Generate the SHA-1 hash of a string\r
+         * \r
+         * @param s     NULL-terminated string to hash\r
+         * @param toHex true iff the result should be encoded in hexadecimal form or left as raw bytes\r
+         *  \r
+         * @return  SHA-1 hash of the data\r
+         */\r
+        virtual std::string hashSHA1(const char* s, bool toHex=false)=0;\r
+        \r
+        /**\r
          * Manages factories for MetadataProvider plugins.\r
          */\r
         xmltooling::PluginManager<saml2md::MetadataProvider,const DOMElement*> MetadataProviderManager;\r
@@ -115,6 +126,11 @@ namespace opensaml {
          */\r
         xmltooling::PluginManager<saml2md::MetadataFilter,const DOMElement*> MetadataFilterManager;\r
 \r
+        /**\r
+         * Manages factories for SAMLArtifact plugins.\r
+         */\r
+        xmltooling::PluginManager<SAMLArtifact,const char*> SAMLArtifactManager;\r
+\r
     protected:\r
         SAMLConfig() {}\r
     };\r