Implement metadata lookup by artifact, refactored metadata indexing.
[shibboleth/cpp-opensaml.git] / saml / saml1 / core / SAMLArtifactType0001.h
index d61020c..2fdf887 100644 (file)
@@ -64,6 +64,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,SOURCEID_LENGTH);                   // bytes 3-22\r
             }\r
             \r