Added setters for rule properties.
authorScott Cantor <cantor.2@osu.edu>
Tue, 7 Nov 2006 01:59:48 +0000 (01:59 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 7 Nov 2006 01:59:48 +0000 (01:59 +0000)
saml/binding/MessageFlowRule.h
saml/binding/MessageRoutingRule.h

index 97c9797..632f305 100644 (file)
@@ -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.
index e38adc8..d5b6e2e 100644 (file)
@@ -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