X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fsaml2%2Fbinding%2FSAML2POSTTest.h;h=77cd153c076e6e007a679c243719794bd0f26d7d;hp=c4addc76d6f6f2b63f65e61813165328e7ce9e47;hb=b66d32ed939fcf6db7bc52c8626b6ac06a2e97f9;hpb=1ffcb743f90aeb3da11054316f3d005ff7edbf7b diff --git a/samltest/saml2/binding/SAML2POSTTest.h b/samltest/saml2/binding/SAML2POSTTest.h index c4addc7..77cd153 100644 --- a/samltest/saml2/binding/SAML2POSTTest.h +++ b/samltest/saml2/binding/SAML2POSTTest.h @@ -49,7 +49,9 @@ public: toSend->setIssueInstant(time(NULL)); // Encode message. - auto_ptr encoder(SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAML2_POST_ENCODER, NULL)); + auto_ptr encoder( + SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAMLConstants::SAML20_BINDING_HTTP_POST, NULL) + ); encoder->encode(m_fields,toSend.get(),"https://sp.example.org/","state",m_creds); toSend.release(); @@ -58,7 +60,9 @@ public: const RoleDescriptor* issuer=NULL; bool trusted=false; QName idprole(SAMLConstants::SAML20MD_NS, IDPSSODescriptor::LOCAL_NAME); - auto_ptr decoder(SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAML2_POST_DECODER, NULL)); + auto_ptr decoder( + SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAMLConstants::SAML20_BINDING_HTTP_POST, NULL) + ); Locker locker(m_metadata); auto_ptr response( dynamic_cast( @@ -97,7 +101,9 @@ public: toSend->setID(NULL); // Encode message. - auto_ptr encoder(SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAML2_POST_ENCODER, NULL)); + auto_ptr encoder( + SAMLConfig::getConfig().MessageEncoderManager.newPlugin(SAMLConstants::SAML20_BINDING_HTTP_POST, NULL) + ); encoder->encode(m_fields,toSend.get(),"https://sp.example.org/","state"); toSend.release(); @@ -106,7 +112,9 @@ public: const RoleDescriptor* issuer=NULL; bool trusted=false; QName idprole(SAMLConstants::SAML20MD_NS, IDPSSODescriptor::LOCAL_NAME); - auto_ptr decoder(SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAML2_POST_DECODER, NULL)); + auto_ptr decoder( + SAMLConfig::getConfig().MessageDecoderManager.newPlugin(SAMLConstants::SAML20_BINDING_HTTP_POST, NULL) + ); Locker locker(m_metadata); auto_ptr response( dynamic_cast(