// for transaction log
StringBuffer dereferencedArtifacts = new StringBuffer();
- // TODO make sure we don't work on artifacts that are expired
-
while (artifacts.hasNext()) {
queriedArtifacts++;
Artifact artifact = (Artifact) artifacts.next();
log.info("Dereferencing artifact: (" + artifact.toString() + ").");
ArtifactMapping mapping = support.getArtifactMapper().recoverAssertion(artifact);
+
if (mapping == null) {
log.info("Could not map artifact to a SAML Assertion.");
+
+ } else if (mapping.isExpired()) {
+ log.error("Artifact is expired. Skipping...");
+
} else {
SAMLAssertion assertion = mapping.getAssertion();
// See if we have metadata for this provider