From: Scott Cantor Date: Tue, 7 Nov 2006 01:59:48 +0000 (+0000) Subject: Added setters for rule properties. X-Git-Tag: 2.0-alpha1~159 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=75f0b5ff4b11c24ac0eef5cf35b7d3ca8d9c98fe Added setters for rule properties. --- diff --git a/saml/binding/MessageFlowRule.h b/saml/binding/MessageFlowRule.h index 97c9797..632f305 100644 --- a/saml/binding/MessageFlowRule.h +++ b/saml/binding/MessageFlowRule.h @@ -43,7 +43,25 @@ namespace opensaml { const xmltooling::QName* role, const TrustEngine* trustEngine ) const; + + /** + * Controls whether rule executes replay checking. + * + * @param checkReplay replay checking value to set + */ + void setCheckReplay(bool checkReplay) { + m_checkReplay = checkReplay; + } + /** + * Controls maximum elapsed time between message issue and rule execution. + * + * @param expires maximum elapsed time in seconds + */ + void setExpires(time_t expires) { + m_expires = expires; + } + protected: /** * Performs the check. diff --git a/saml/binding/MessageRoutingRule.h b/saml/binding/MessageRoutingRule.h index e38adc8..d5b6e2e 100644 --- a/saml/binding/MessageRoutingRule.h +++ b/saml/binding/MessageRoutingRule.h @@ -52,6 +52,16 @@ namespace opensaml { const TrustEngine* trustEngine ) const; + /** + * Controls whether rule insists on presence of destination address in + * the message. + * + * @param mandatory flag value to set + */ + void setMandatory(bool mandatory) { + m_mandatory = mandatory; + } + protected: /** * Examines the message and/or its contents and extracts the destination