class SAML_API RoleDescriptor;
class SAML_API MetadataCredentialResolver;
class SAML_API MetadataFilter;
+ class SAML_API MetadataFilterContext;
#if defined (_MSC_VER)
#pragma warning( push )
virtual MetadataFilter* removeMetadataFilter(MetadataFilter* oldFilter);
/**
+ * Sets a filtering context object for use by the filtering process.
+ * <p>The object's lifetime must last for the duration of the lifetime
+ * of the MetadataProvider.
+ *
+ * @param ctx a context object
+ */
+ void setContext(const MetadataFilterContext* ctx);
+
+ /**
* Should be called after instantiating provider and adding filters, but before
* performing any lookup operations. Allows the provider to defer initialization
* processes that are likely to result in exceptions until after the provider is
void doFilters(xmltooling::XMLObject& xmlObject) const;
private:
+ const MetadataFilterContext* m_filterContext;
boost::ptr_vector<MetadataFilter> m_filters;
};