projects
/
shibboleth
/
cpp-opensaml.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/cpp-opensaml.git]
/
saml
/
saml1
/
binding
/
SAML1SOAPClient.h
diff --git
a/saml/saml1/binding/SAML1SOAPClient.h
b/saml/saml1/binding/SAML1SOAPClient.h
index
783c7c2
..
de2e9b7
100644
(file)
--- a/
saml/saml1/binding/SAML1SOAPClient.h
+++ b/
saml/saml1/binding/SAML1SOAPClient.h
@@
-17,7
+17,7
@@
/**
* @file saml/saml1/binding/SAML1SOAPClient.h
*
/**
* @file saml/saml1/binding/SAML1SOAPClient.h
*
- *
Specialized SOAPClient
for SAML 1.x SOAP binding.
+ *
Client class
for SAML 1.x SOAP binding.
*/
#ifndef __saml1_soap11client_h__
*/
#ifndef __saml1_soap11client_h__
@@
-26,6
+26,7
@@
#include <saml/binding/SOAPClient.h>
namespace opensaml {
#include <saml/binding/SOAPClient.h>
namespace opensaml {
+
namespace saml1p {
class SAML_API Request;
namespace saml1p {
class SAML_API Request;
@@
-33,32
+34,34
@@
namespace opensaml {
class SAML_API Status;
/**
class SAML_API Status;
/**
- *
Specialized SOAPClient
for SAML 1.x SOAP binding.
+ *
Client class
for SAML 1.x SOAP binding.
*/
*/
- class SAML_API SAML1SOAPClient
: public opensaml::SOAPClient
+ class SAML_API SAML1SOAPClient
{
public:
/**
{
public:
/**
- * C
reates a SOAP client instance with a particular SecurityPolicy.
+ * C
onstructor
*
*
- * @param policy reference to SecurityPolicy to apply
- * @param validating controls schema validation
+ * @param soaper reference to SOAPClient object to use for call
*/
*/
- SAML1SOAPClient(SecurityPolicy& policy, bool validating=false) : opensaml::SOAPClient(policy, validating) {}
+ SAML1SOAPClient(SOAPClient& soaper) : m_soaper(soaper), m_correlate(NULL) {
+ }
- virtual ~SAML1SOAPClient() {}
+ virtual ~SAML1SOAPClient() {
+ XMLString::release(&m_correlate);
+ }
/**
* Specialized method for sending SAML 1.x requests. The SOAP layer will be
* constructed automatically.
*
/**
* Specialized method for sending SAML 1.x requests. The SOAP layer will be
* constructed automatically.
*
- * <p>The request will be freed by the client object
if the method succeeds
.
+ * <p>The request will be freed by the client object
regardless of the outcome
.
*
* @param request SAML request to send
*
* @param request SAML request to send
- * @param peer peer to send message to, expressed in metadata terms
+ * @param peer peer to send message to, expressed in metadata
criteria
terms
* @param endpoint URL of endpoint to recieve message
*/
* @param endpoint URL of endpoint to recieve message
*/
- virtual void sendSAML(Request* request,
const saml2md::RoleDescriptor
& peer, const char* endpoint);
+ virtual void sendSAML(Request* request,
saml2md::MetadataCredentialCriteria
& peer, const char* endpoint);
/**
* Specialized method for receiving SAML 1.x responses. The SOAP layer will be
/**
* Specialized method for receiving SAML 1.x responses. The SOAP layer will be
@@
-78,6
+81,12
@@
namespace opensaml {
* @return true iff the error should be treated as a fatal error
*/
virtual bool handleError(const Status& status);
* @return true iff the error should be treated as a fatal error
*/
virtual bool handleError(const Status& status);
+
+ /** SOAP client object */
+ SOAPClient& m_soaper;
+
+ private:
+ XMLCh* m_correlate;
};
};
};
};