Fixed attribute-based functors.
[shibboleth/sp.git] / shibsp / attribute / resolver / AttributeResolver.h
index 2e143b9..4b12938 100644 (file)
@@ -33,8 +33,9 @@ namespace shibsp {
 
     class SHIBSP_API Application;
     class SHIBSP_API Attribute;
-    class SHIBSP_API Session;
     class SHIBSP_API ResolutionContext;
+    class SHIBSP_API Session;
+    class SHIBSP_API SPRequest;
 
 #if defined (_MSC_VER)
     #pragma warning( push )
@@ -95,6 +96,14 @@ namespace shibsp {
          * @throws AttributeResolutionException thrown if there is a problem resolving the attributes for the subject
          */
         virtual void resolveAttributes(ResolutionContext& ctx) const=0;
+
+        /**
+         * Clears possible HTTP request headers that might be populated
+         * during attribute export.
+         *
+         * @param request   the SP request being processed
+         */
+        virtual void clearHeaders(SPRequest& request) const=0;
     };
 
 #if defined (_MSC_VER)