Rework decoder handling in simple resolver, add IdP/SP names to decoder API, hook...
[shibboleth/sp.git] / shibsp / attribute / SimpleAttributeDecoder.cpp
index 0dfc6c8..f781f38 100644 (file)
@@ -42,7 +42,9 @@ namespace shibsp {
         SimpleAttributeDecoder(const DOMElement* e) {}\r
         ~SimpleAttributeDecoder() {}\r
 \r
-        shibsp::Attribute* decode(const char* id, const XMLObject* xmlObject) const;\r
+        shibsp::Attribute* decode(\r
+            const char* id, const XMLObject* xmlObject, const char* assertingParty=NULL, const char* relyingParty=NULL\r
+            ) const;\r
     };\r
 \r
     AttributeDecoder* SHIBSP_DLLLOCAL SimpleAttributeDecoderFactory(const DOMElement* const & e)\r
@@ -51,7 +53,9 @@ namespace shibsp {
     }\r
 };\r
 \r
-shibsp::Attribute* SimpleAttributeDecoder::decode(const char* id, const XMLObject* xmlObject) const\r
+shibsp::Attribute* SimpleAttributeDecoder::decode(\r
+    const char* id, const XMLObject* xmlObject, const char* assertingParty, const char* relyingParty\r
+    ) const\r
 {\r
     char* val;\r
     auto_ptr<SimpleAttribute> simple(new SimpleAttribute(id));\r