opensaml-2.5.0
opensaml::saml2p::SAML2SOAPClient Class Reference

Specialized SOAPClient for SAML 2.0 SOAP binding. More...

#include <saml/saml2/binding/SAML2SOAPClient.h>

List of all members.

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

SOAPClientm_soaper
 SOAP client object.
bool m_fatal
 Flag controlling default error handler.

Detailed Description

Specialized SOAPClient for SAML 2.0 SOAP binding.


Constructor & Destructor Documentation

opensaml::saml2p::SAML2SOAPClient::SAML2SOAPClient ( SOAPClient soaper,
bool  fatalSAMLErrors = true 
)

Constructor.

Parameters:
soaperreference to SOAPClient object to use for call
fatalSAMLErrorstrue iff a non-successful SAML Status code should be fatal

Member Function Documentation

virtual bool opensaml::saml2p::SAML2SOAPClient::handleError ( const Status status) [protected, virtual]

Handling of SAML errors.

Parameters:
statusSAML Status received by client
Returns:
true iff the error should be treated as a fatal error
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.

Returns:
SAML 2.0 response, after SecurityPolicy has been applied
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.

Parameters:
requestSAML request to send
topeer to send message to, expressed in metadata criteria terms
fromidentity of sending application
endpointURL of endpoint to recieve message

Member Data Documentation

Flag controlling default error handler.


The documentation for this class was generated from the following file: