#include <saml/saml1/binding/SAML1SOAPClient.h>
Public Member Functions | |
SAML1SOAPClient (SOAPClient &soaper, bool fatalSAMLErrors=true) | |
Constructor. | |
virtual void | sendSAML (Request *request, const char *from, saml2md::MetadataCredentialCriteria &to, const char *endpoint) |
Specialized method for sending SAML 1.x requests. | |
virtual Response * | receiveSAML () |
Specialized method for receiving SAML 1.x responses. | |
Protected Member Functions | |
virtual bool | handleError (const Status &status) |
Handling of SAML errors. | |
Protected Attributes | |
SOAPClient & | m_soaper |
SOAP client object. | |
bool | m_fatal |
Flag controlling default error handler. |
opensaml::saml1p::SAML1SOAPClient::SAML1SOAPClient | ( | SOAPClient & | soaper, | |
bool | fatalSAMLErrors = true | |||
) |
Constructor.
soaper | reference to SOAPClient object to use for call | |
fatalSAMLErrors | true iff a non-successful SAML Status code should be fatal |
virtual void opensaml::saml1p::SAML1SOAPClient::sendSAML | ( | Request * | request, | |
const char * | from, | |||
saml2md::MetadataCredentialCriteria & | to, | |||
const char * | endpoint | |||
) | [virtual] |
Specialized method for sending SAML 1.x requests.
The SOAP layer will be constructed automatically.
The request will be freed by the client object regardless of the outcome.
request | SAML request to send | |
from | identity of sending application | |
to | peer to send message to, expressed in metadata criteria terms | |
endpoint | URL of endpoint to recieve message |
virtual Response* opensaml::saml1p::SAML1SOAPClient::receiveSAML | ( | ) | [virtual] |
Specialized method for receiving SAML 1.x responses.
The SOAP layer will be evaluated automatically, and the attached policy will be applied to the Response.
The caller is responsible for freeing the Response.
virtual bool opensaml::saml1p::SAML1SOAPClient::handleError | ( | const Status & | status | ) | [protected, virtual] |
Handling of SAML errors.
status | SAML Status received by client |
SOAPClient& opensaml::saml1p::SAML1SOAPClient::m_soaper [protected] |
SOAP client object.
bool opensaml::saml1p::SAML1SOAPClient::m_fatal [protected] |
Flag controlling default error handler.