Implement metadata lookup by artifact, refactored metadata indexing.
[shibboleth/cpp-opensaml.git] / saml / saml2 / core / SAML2ArtifactType0004.h
index 7a0375c..caa429d 100644 (file)
@@ -66,6 +66,16 @@ namespace opensaml {
             }\r
             \r
             virtual std::string getSource() const {\r
+                return toHex(getSourceID());\r
+            }\r
+\r
+            /**\r
+             * Returns the binary data that identifies the source.\r
+             * The result MAY contain embedded null characters.\r
+             * \r
+             * @return the binary source ID\r
+             */\r
+            virtual std::string getSourceID() const {\r
                 return m_raw.substr(TYPECODE_LENGTH + INDEX_LENGTH, SOURCEID_LENGTH);    // bytes 5-24\r
             }\r
             \r