Add option to disable name checks.
[shibboleth/cpp-opensaml.git] / saml / saml2 / metadata / MetadataFilter.h
index fe287a8..81762e7 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <saml/base.h>
 #include <saml/exceptions.h>
+#include <saml/saml2/metadata/MetadataProvider.h>
+
 #include <xmltooling/XMLObject.h>
 
 #ifndef __saml2_metadatafilt_h__
@@ -75,8 +77,10 @@ namespace opensaml {
 
         /** MetadataFilter that verifies signatures and filters out any that don't pass. */
         #define SIGNATURE_METADATA_FILTER  "Signature"
+
+        /** MetadataFilter that enforces expiration requirements. */
+        #define REQUIREVALIDUNTIL_METADATA_FILTER  "RequireValidUntil"
         
-        DECL_XMLTOOLING_EXCEPTION(MetadataException,SAML_EXCEPTIONAPI(SAML_API),opensaml::saml2md,xmltooling::XMLToolingException,Exceptions related to metadata use);
         DECL_XMLTOOLING_EXCEPTION(MetadataFilterException,SAML_EXCEPTIONAPI(SAML_API),opensaml::saml2md,MetadataException,Exceptions related to metadata filtering);
     };
 };