X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fsaml2%2Fbinding%2FSAML2ArtifactTest.h;h=336e403a073a6b8b3fe2bc492aaea9b1536cb5c9;hp=ee5b5f022aac120acca7b30943d05201332c90d7;hb=5d4b679f292a46494e822e9634f0ffa06f8f421c;hpb=bd9231e66414ec239402ab809ae46fa3be97ca3b diff --git a/samltest/saml2/binding/SAML2ArtifactTest.h b/samltest/saml2/binding/SAML2ArtifactTest.h index ee5b5f0..336e403 100644 --- a/samltest/saml2/binding/SAML2ArtifactTest.h +++ b/samltest/saml2/binding/SAML2ArtifactTest.h @@ -64,7 +64,10 @@ public: SAMLConfig::getConfig().MessageEncoderManager.newPlugin(samlconstants::SAML20_BINDING_HTTP_ARTIFACT, NULL) ); encoder->setArtifactGenerator(this); - encoder->encode(*this,toSend.get(),"https://sp.example.org/SAML/SSO","https://sp.example.org/","state",cred); + Locker locker(m_metadata); + encoder->encode( + *this,toSend.get(),"https://sp.example.org/SAML/SSO",m_metadata->getEntityDescriptor("https://sp.example.org/"),"state",cred + ); toSend.release(); // Decode message. @@ -73,7 +76,6 @@ public: SAMLConfig::getConfig().MessageDecoderManager.newPlugin(samlconstants::SAML20_BINDING_HTTP_ARTIFACT, NULL) ); decoder->setArtifactResolver(this); - Locker locker(m_metadata); auto_ptr response(dynamic_cast(decoder->decode(relayState,*this,policy))); // Test the results. @@ -94,11 +96,11 @@ public: } } - SAMLArtifact* generateSAML1Artifact(const char* relyingParty) const { + SAMLArtifact* generateSAML1Artifact(const EntityDescriptor* relyingParty) const { throw BindingException("Not implemented."); } - saml2p::SAML2Artifact* generateSAML2Artifact(const char* relyingParty) const { + saml2p::SAML2Artifact* generateSAML2Artifact(const EntityDescriptor* relyingParty) const { return new SAML2ArtifactType0004(SAMLConfig::getConfig().hashSHA1("https://idp.example.org/"),1); }