Added marker interface for assertion types.
[shibboleth/cpp-opensaml.git] / saml / binding / XMLSigningRule.h
index 0b65c62..b6f42c7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  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.
@@ -20,6 +20,9 @@
  * XML Signature checking SecurityPolicyRule
  */
 
+#ifndef __saml_xmlsignrule_h__
+#define __saml_xmlsignrule_h__
+
 #include <saml/binding/SecurityPolicyRule.h>
 
 
@@ -30,10 +33,16 @@ namespace opensaml {
     class SAML_API XMLSigningRule : public SecurityPolicyRule
     {
     public:
-        XMLSigningRule(const DOMElement* e) {}
+        XMLSigningRule(const DOMElement* e);
         virtual ~XMLSigningRule() {}
         
-        bool evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+        void evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const;
+
+    protected:
+        /** Flag determining whether to raise exceptions if a signature fails to validate. */
+        bool m_errorsFatal;
     };
     
 };
+
+#endif /* __saml_xmlsignrule_h__ */