opensaml-2.4.3
|
Specialized SOAPClient for SAML 2.0 SOAP binding. More...
#include <saml/saml2/binding/SAML2SOAPClient.h>
Public Member Functions | |
SAML2SOAPClient (SOAPClient &soaper, bool fatalSAMLErrors=true) | |
Constructor. | |
virtual void | sendSAML (RequestAbstractType *request, const char *from, saml2md::MetadataCredentialCriteria &to, const char *endpoint) |
Specialized method for sending SAML 2.0 requests. | |
virtual StatusResponseType * | receiveSAML () |
Specialized method for receiving SAML 2.0 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. |
Specialized SOAPClient for SAML 2.0 SOAP binding.
opensaml::saml2p::SAML2SOAPClient::SAML2SOAPClient | ( | 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 bool opensaml::saml2p::SAML2SOAPClient::handleError | ( | const Status & | status | ) | [protected, virtual] |
Handling of SAML errors.
status | SAML Status received by client |
virtual StatusResponseType* opensaml::saml2p::SAML2SOAPClient::receiveSAML | ( | ) | [virtual] |
Specialized method for receiving SAML 2.0 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 void opensaml::saml2p::SAML2SOAPClient::sendSAML | ( | RequestAbstractType * | request, |
const char * | from, | ||
saml2md::MetadataCredentialCriteria & | to, | ||
const char * | endpoint | ||
) | [virtual] |
Specialized method for sending SAML 2.0 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 |
to | peer to send message to, expressed in metadata criteria terms |
from | identity of sending application |
endpoint | URL of endpoint to recieve message |
bool opensaml::saml2p::SAML2SOAPClient::m_fatal [protected] |
Flag controlling default error handler.