KD SOAP
Public Slots | Signals | Private Member Functions | List of all members
KDSoapSslHandler Class Reference

A class for handling SSL errors during SOAP calls. More...

#include <KDSoapSslHandler.h>

Inherits QObject.

Public Slots

void ignoreSslErrors ()
 ignoreSslErrors More...
 
void ignoreSslErrors (const QList< QSslError > &errors)
 

Signals

void sslErrors (KDSoapSslHandler *handler, const QList< QSslError > &errors)
 Notification of SSL errors. More...
 

Private Member Functions

 KDSoapSslHandler (QObject *parent=0)
 

Detailed Description

A class for handling SSL errors during SOAP calls.

Since
1.3

Constructor & Destructor Documentation

KDSoapSslHandler::KDSoapSslHandler ( QObject *  parent = 0)
explicitprivate

Constructs a KDSoapSslHandler. Used internally

Member Function Documentation

void KDSoapSslHandler::sslErrors ( KDSoapSslHandler handler,
const QList< QSslError > &  errors 
)
signal

Notification of SSL errors.

This signal is emitted if the SSL/TLS session encountered errors during the set up, including certificate verification errors. The errors parameter contains the list of errors.

To indicate that the errors are not fatal and that the connection should proceed, the ignoreSslErrors() method should be called from the slot connected to this signal. If it is not called, the SSL session will be torn down before any data is exchanged.

Parameters
errorslist of ssl errors
void KDSoapSslHandler::ignoreSslErrors ( )
slot

ignoreSslErrors

If this function is called, SSL errors related to network connection will be ignored, including certificate validation errors.

Note that calling this function without restraint may pose a security risk for your application. Use it with care.

This function can be called from the slot connected to the sslErrors() signal, which indicates which errors were found.

void KDSoapSslHandler::ignoreSslErrors ( const QList< QSslError > &  errors)
slot

If this function is called, the SSL errors given in errors will be ignored. Note that you can set the expected certificate in the SSL error. See QNetworkReply::ignoreSslErrors() for more information.

This function can be called from the slot connected to the sslErrors() signal, which indicates which errors were found.

Parameters
errorslist of errors to ignore
Since
1.4

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

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-soap/