projects
/
shibboleth
/
opensaml2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major revamp of credential and trust handling code, PKIX engine still needs work.
[shibboleth/opensaml2.git]
/
samltest
/
saml2
/
binding
/
SAML2RedirectTest.h
diff --git
a/samltest/saml2/binding/SAML2RedirectTest.h
b/samltest/saml2/binding/SAML2RedirectTest.h
index
5fda95a
..
59e51fd
100644
(file)
--- a/
samltest/saml2/binding/SAML2RedirectTest.h
+++ b/
samltest/saml2/binding/SAML2RedirectTest.h
@@
-46,6
+46,12
@@
public:
);
janitor.release();
);
janitor.release();
+ CredentialCriteria cc;
\r
+ cc.setUsage(CredentialCriteria::SIGNING_CREDENTIAL);
\r
+ Locker clocker(m_creds);
\r
+ const Credential* cred = m_creds->resolve(&cc);
\r
+ TSM_ASSERT("Retrieved credential was null", cred!=NULL);
\r
+
// Freshen timestamp and ID.
toSend->setIssueInstant(time(NULL));
toSend->setID(NULL);
// Freshen timestamp and ID.
toSend->setIssueInstant(time(NULL));
toSend->setID(NULL);
@@
-54,7
+60,7
@@
public:
auto_ptr<MessageEncoder> encoder(
SAMLConfig::getConfig().MessageEncoderManager.newPlugin(samlconstants::SAML20_BINDING_HTTP_REDIRECT, NULL)
);
auto_ptr<MessageEncoder> encoder(
SAMLConfig::getConfig().MessageEncoderManager.newPlugin(samlconstants::SAML20_BINDING_HTTP_REDIRECT, NULL)
);
- encoder->encode(*this,toSend.get(),"https://sp.example.org/SAML/SSO","https://sp.example.org/","state",
m_creds
);
+ encoder->encode(*this,toSend.get(),"https://sp.example.org/SAML/SSO","https://sp.example.org/","state",
cred
);
toSend.release();
// Decode message.
toSend.release();
// Decode message.