X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fbinding%2FXMLSigningRule.h;h=b6f42c7d21bf3632397565edea6ecc973e8e5e40;hb=0beb48ce00d0b6a3f177f7d9b48af1870ee92190;hp=0b65c62114ada32836328c871677e57240d8f7f7;hpb=632fdee22ac4b756eaa3158217b9acd6c831e7be;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/binding/XMLSigningRule.h b/saml/binding/XMLSigningRule.h index 0b65c62..b6f42c7 100644 --- a/saml/binding/XMLSigningRule.h +++ b/saml/binding/XMLSigningRule.h @@ -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 @@ -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__ */