X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsaml2%2Fmetadata%2FMetadataProvider.h;h=e8c852f418259931db878e563ff7513ac6cc1da8;hb=1462057b3b9ae7e165d34d988e30b14c213672ca;hp=05d2493f62f89d3f99cffaea9285d0b78731f11e;hpb=208928133db000b055b99fcbabc245295adb0d48;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/saml2/metadata/MetadataProvider.h b/saml/saml2/metadata/MetadataProvider.h index 05d2493..e8c852f 100644 --- a/saml/saml2/metadata/MetadataProvider.h +++ b/saml/saml2/metadata/MetadataProvider.h @@ -51,6 +51,7 @@ namespace opensaml { class SAML_API RoleDescriptor; class SAML_API MetadataCredentialResolver; class SAML_API MetadataFilter; + class SAML_API MetadataFilterContext; #if defined (_MSC_VER) #pragma warning( push ) @@ -121,6 +122,15 @@ namespace opensaml { virtual MetadataFilter* removeMetadataFilter(MetadataFilter* oldFilter); /** + * Sets a filtering context object for use by the filtering process. + *

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 @@ -251,6 +261,7 @@ namespace opensaml { void doFilters(xmltooling::XMLObject& xmlObject) const; private: + const MetadataFilterContext* m_filterContext; boost::ptr_vector m_filters; };