/*
- * 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.
* XML Signature checking SecurityPolicyRule
*/
+#ifndef __saml_xmlsignrule_h__
+#define __saml_xmlsignrule_h__
+
#include <saml/binding/SecurityPolicyRule.h>
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__ */