X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fbinding%2FMessageFlowRule.h;h=fc3e816179ece8a490f4d9a7cb5f9ce97810fd98;hb=632fdee22ac4b756eaa3158217b9acd6c831e7be;hp=632f30580362718f10e6118a458f0cb3021f80d5;hpb=75f0b5ff4b11c24ac0eef5cf35b7d3ca8d9c98fe;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/binding/MessageFlowRule.h b/saml/binding/MessageFlowRule.h index 632f305..fc3e816 100644 --- a/saml/binding/MessageFlowRule.h +++ b/saml/binding/MessageFlowRule.h @@ -27,8 +27,8 @@ namespace opensaml { /** * SAML replay and freshness checking SecurityPolicyRule * - * Subclasses can provide support for additional message types - * by overriding the main method and then calling the check method. + * Some form of message rule to extract ID and timestamp must be + * run prior to this rule. */ class SAML_API MessageFlowRule : public SecurityPolicyRule { @@ -36,13 +36,7 @@ namespace opensaml { MessageFlowRule(const DOMElement* e); virtual ~MessageFlowRule() {} - std::pair evaluate( - const GenericRequest& request, - const xmltooling::XMLObject& message, - const saml2md::MetadataProvider* metadataProvider, - const xmltooling::QName* role, - const TrustEngine* trustEngine - ) const; + bool evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const; /** * Controls whether rule executes replay checking. @@ -61,17 +55,6 @@ namespace opensaml { void setExpires(time_t expires) { m_expires = expires; } - - protected: - /** - * Performs the check. - * - * @param id message identifier - * @param issueInstant timestamp of protocol message - * - * @exception BindingException raised if a check fails - */ - void check(const XMLCh* id, time_t issueInstant) const; private: bool m_checkReplay;