projects
/
shibboleth
/
cpp-opensaml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add provider Id, track last update, report in status method.
[shibboleth/cpp-opensaml.git]
/
saml
/
saml2
/
metadata
/
impl
/
XMLMetadataProvider.cpp
diff --git
a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp
b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp
index
f0e5963
..
45e9fab
100644
(file)
--- a/
saml/saml2/metadata/impl/XMLMetadataProvider.cpp
+++ b/
saml/saml2/metadata/impl/XMLMetadataProvider.cpp
@@
-93,6
+93,10
@@
namespace opensaml {
}
}
}
}
+ const char* getId() const {
+ return m_id.c_str();
+ }
+
const XMLObject* getMetadata() const {
return m_object;
}
const XMLObject* getMetadata() const {
return m_object;
}
@@
-236,6
+240,7
@@
pair<bool,DOMElement*> XMLMetadataProvider::load(bool backup)
generateFeed();
if (changed)
emitChangeEvent();
generateFeed();
if (changed)
emitChangeEvent();
+ m_lastUpdate = time(nullptr);
// Tracking cacheUntil through the tree is TBD, but
// validUntil is the tightest interval amongst the children.
// Tracking cacheUntil through the tree is TBD, but
// validUntil is the tightest interval amongst the children.