Expose a "user agent present" property.
[shibboleth/cpp-opensaml.git] / saml / binding / SecurityPolicyRule.h
index 0f3090c..129af0f 100644 (file)
@@ -52,7 +52,7 @@ namespace opensaml {
          * @throws BindingException raised if the message/request is not acceptable to the policy rule
          */
         virtual void evaluate(
-            const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy
+            const xmltooling::XMLObject& message, const xmltooling::GenericRequest* request, SecurityPolicy& policy
             ) const=0;
     };
 
@@ -96,6 +96,15 @@ namespace opensaml {
     #define MESSAGEFLOW_POLICY_RULE  "MessageFlow"
 
     /**
+     * SecurityPolicyRule for disabling security.
+     * 
+     * Allows the message issuer to be authenticated regardless of the message or
+     * transport. Used mainly for debugging or in situations that I wouldn't care to
+     * comment on.
+     */
+    #define NULLSECURITY_POLICY_RULE  "NullSecurity"
+
+    /**
      * SecurityPolicyRule for protocol message "blob" signing.
      * 
      * Allows the message issuer to be authenticated using a non-XML digital signature