From 456b45331fd3581bf37f197085236b52be61ac63 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 4 May 2007 03:15:55 +0000 Subject: [PATCH] Let XML resource loader handle "validity". --- saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp | 1 + saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp | 1 + saml/saml2/metadata/impl/XMLMetadataProvider.cpp | 5 ----- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp b/saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp index 8839b7d..cb60c7d 100644 --- a/saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp +++ b/saml/saml1/binding/impl/SAML1ArtifactDecoder.cpp @@ -154,6 +154,7 @@ XMLObject* SAML1ArtifactDecoder::decode( policy.setIssuerMetadata(roledesc); try { + log.debug("calling ArtifactResolver..."); auto_ptr response( m_artifactResolver->resolve(artifacts, dynamic_cast(*roledesc), policy) ); diff --git a/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp b/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp index c4c24a4..7fe371d 100644 --- a/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2ArtifactDecoder.cpp @@ -149,6 +149,7 @@ XMLObject* SAML2ArtifactDecoder::decode( } policy.setIssuerMetadata(roledesc); + log.debug("calling ArtifactResolver..."); auto_ptr response( m_artifactResolver->resolve(*(artifact2.get()), dynamic_cast(*roledesc), policy) ); diff --git a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp index f1e3bc7..a770610 100644 --- a/saml/saml2/metadata/impl/XMLMetadataProvider.cpp +++ b/saml/saml2/metadata/impl/XMLMetadataProvider.cpp @@ -63,11 +63,6 @@ namespace opensaml { protected: pair load(); - bool isValid() const { - const TimeBoundSAMLObject* bound=dynamic_cast(m_object); - return bound ? bound->isValid() : false; - } - private: void index(); -- 2.1.4