}
/**
- * Returns the entityID of the receiving entity.
+ * Returns the SAML audiences that represent the receiving peer.
*
- * @return entityID of the peer processing the message
+ * @return audience values of the peer processing the message
*/
- const XMLCh* getRecipient() {
- return m_recipient;
+ const std::vector<const XMLCh*>& getAudiences() const {
+ return m_audiences;
+ }
+
+ /**
+ * Returns the SAML audiences that represent the receiving peer.
+ *
+ * @return audience values of the peer processing the message
+ */
+ std::vector<const XMLCh*>& getAudiences() {
+ return m_audiences;
}
/**
*
* @return the time at which the message is being processed
*/
- time_t getTime() {
+ time_t getTime() const {
if (m_ts == 0)
return m_ts = time(NULL);
return m_ts;
}
/**
- * Sets entityID of receiving entity.
- *
- * @param recipient the entityID of the peer processing the message
- */
- void setRecipient(const XMLCh* recipient) {
- m_recipient = recipient;
- }
-
- /**
* Sets effective time of message processing.
*
* <p>Assumed to be the time of policy instantiation, can be adjusted to pre- or post-date
bool m_entityOnly;
// contextual information
- const XMLCh* m_recipient;
- time_t m_ts;
+ mutable time_t m_ts;
+ std::vector<const XMLCh*> m_audiences;
};
};