QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Utility class that contains authorization information. More...
#include <qgsauthorizationsettings.h>
Public Member Functions | |
QgsAuthorizationSettings (const QString &userName=QString(), const QString &password=QString(), const QgsHttpHeaders &httpHeaders=QgsHttpHeaders(), const QString &authcfg=QString()) | |
Constructor for QgsAuthorizationSettings. | |
bool | setAuthorization (QNetworkRequest &request) const |
Update authorization for request. | |
bool | setAuthorizationReply (QNetworkReply *reply) const |
Update authorization for reply. | |
Public Attributes | |
QString | mAuthCfg |
Authentication configuration ID. | |
QgsHttpHeaders | mHttpHeaders |
headers for http requests | |
QString | mPassword |
Password for basic http authentication. | |
QString | mUserName |
Username for basic http authentication. | |
Utility class that contains authorization information.
Definition at line 35 of file qgsauthorizationsettings.h.
QgsAuthorizationSettings::QgsAuthorizationSettings | ( | const QString & | userName = QString() , |
const QString & | password = QString() , |
||
const QgsHttpHeaders & | httpHeaders = QgsHttpHeaders() , |
||
const QString & | authcfg = QString() |
||
) |
Constructor for QgsAuthorizationSettings.
Definition at line 18 of file qgsauthorizationsettings.cpp.
bool QgsAuthorizationSettings::setAuthorization | ( | QNetworkRequest & | request | ) | const |
Update authorization for request.
Definition at line 25 of file qgsauthorizationsettings.cpp.
bool QgsAuthorizationSettings::setAuthorizationReply | ( | QNetworkReply * | reply | ) | const |
Update authorization for reply.
Definition at line 41 of file qgsauthorizationsettings.cpp.
QString QgsAuthorizationSettings::mAuthCfg |
Authentication configuration ID.
Definition at line 58 of file qgsauthorizationsettings.h.
QgsHttpHeaders QgsAuthorizationSettings::mHttpHeaders |
headers for http requests
Definition at line 55 of file qgsauthorizationsettings.h.
QString QgsAuthorizationSettings::mPassword |
Password for basic http authentication.
Definition at line 52 of file qgsauthorizationsettings.h.
QString QgsAuthorizationSettings::mUserName |
Username for basic http authentication.
Definition at line 49 of file qgsauthorizationsettings.h.