Allow message-only policy rules, basic SAML SOAP client.
[shibboleth/cpp-opensaml.git] / saml / binding / MessageFlowRule.h
index 97c9797..885b82a 100644 (file)
@@ -37,13 +37,31 @@ namespace opensaml {
         virtual ~MessageFlowRule() {}
         
         std::pair<saml2::Issuer*,const saml2md::RoleDescriptor*> evaluate(
-            const GenericRequest& request,
             const xmltooling::XMLObject& message,
+            const GenericRequest* request,
             const saml2md::MetadataProvider* metadataProvider,
             const xmltooling::QName* role,
-            const TrustEngine* trustEngine
+            const xmltooling::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.