#include <saml/binding/SOAPClient.h>
Public Member Functions | |
SOAPClient (SecurityPolicy &policy) | |
Creates a SOAP client instance with a particular SecurityPolicy. | |
void | forceTransportAuthentication (bool force=true) |
Controls whether to force transport/peer authentication via an X509TrustEngine. | |
virtual void | send (const soap11::Envelope &env, const char *from, saml2md::MetadataCredentialCriteria &to, const char *endpoint) |
SAML-specific method uses metadata to determine the peer name and prepare the transport layer with peer credential information. | |
soap11::Envelope * | receive () |
Override applies SecurityPolicy to envelope before returning it. | |
void | reset () |
SecurityPolicy & | getPolicy () const |
Returns the SecurityPolicy supplied to the client. | |
Protected Member Functions | |
void | prepareTransport (xmltooling::SOAPTransport &transport) |
Override prepares transport by assigning an X509TrustEngine to it, if one is attached to the policy. | |
Protected Attributes | |
SecurityPolicy & | m_policy |
Reference to security policy to apply. | |
bool | m_force |
Flag controlling whether transport/peer authn is mandatory. | |
const saml2md::RoleDescriptor * | m_peer |
Metadata-based peer identity. | |
saml2md::MetadataCredentialCriteria * | m_criteria |
Metadata-based CredentialCriteria for supplying credentials to TrustEngine. |
|
Creates a SOAP client instance with a particular SecurityPolicy.
|
|
Controls whether to force transport/peer authentication via an X509TrustEngine. Only makes sense if an X509TrustEngine is supplied by the SecurityPolicy.
|
|
Returns the SecurityPolicy supplied to the client.
|
|
Override prepares transport by assigning an X509TrustEngine to it, if one is attached to the policy.
|
|
Override applies SecurityPolicy to envelope before returning it.
|
|
SAML-specific method uses metadata to determine the peer name and prepare the transport layer with peer credential information. The SecurityPolicy is also reset, in case the policy is reused.
|