X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fbinding%2FSecurityPolicy.h;h=6a5aac78d7f3e6e68971657e607f27893b08d9af;hp=2dd16c253ab394dc77fc50af628e490d701613a0;hb=69a716dedfd9e239bcc9206a7b8dc137b43f5f89;hpb=df39928338a40f7a2980406e9737893289673611 diff --git a/saml/binding/SecurityPolicy.h b/saml/binding/SecurityPolicy.h index 2dd16c2..6a5aac7 100644 --- a/saml/binding/SecurityPolicy.h +++ b/saml/binding/SecurityPolicy.h @@ -160,6 +160,16 @@ namespace opensaml { } /** + * Returns the message identifier to which the message being evaluated + * is a response. + * + * @return correlated message identifier + */ + const XMLCh* getCorrelationID() const { + return m_correlationID; + } + + /** * Gets a mutable array of installed policy rules. * *

If adding rules, their lifetime must be at least as long as the policy object. @@ -242,6 +252,16 @@ namespace opensaml { } /** + * Sets the message identifier to which the message being evaluated + * is a response. + * + * @param correlationID correlated message identifier + */ + void setCorrelationID(const XMLCh* correlationID) { + m_correlationID = correlationID; + } + + /** * Evaluates the policy against the given request and message, * possibly populating message information in the policy object. * @@ -450,6 +470,7 @@ namespace opensaml { // contextual information mutable time_t m_ts; + const XMLCh* m_correlationID; std::vector m_audiences; };