/*
- * Copyright 2001-2006 Internet2
+ * Copyright 2001-2007 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Processes metadata after it's been unmarshalled.
*/
+#include <saml/base.h>
+#include <saml/exceptions.h>
+#include <xmltooling/XMLObject.h>
+
#ifndef __saml2_metadatafilt_h__
#define __saml2_metadatafilt_h__
-#include <saml/saml2/metadata/Metadata.h>
-
namespace opensaml {
namespace saml2md {
/** MetadataFilter that deletes all but whitelisted entities. */
#define WHITELIST_METADATA_FILTER "org.opensaml.saml2.metadata.provider.WhitelistMetadataFilter"
+
+ /** MetadataFilter that verifies signatures and filters out any that don't pass. */
+ #define SIGNATURE_METADATA_FILTER "org.opensaml.saml2.metadata.provider.SignatureMetadataFilter"
- DECL_XMLTOOLING_EXCEPTION(MetadataFilterException,SAML_EXCEPTIONAPI(SAML_API),opensaml::saml2md,xmltooling::XMLToolingException,Exceptions related to metadata filtering);
+ 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);
};
};