17 #ifndef QGSCREDENTIALS_H
18 #define QGSCREDENTIALS_H
26 #include "qgis_core.h"
69 bool get(
const QString &realm, QString &username
SIP_INOUT, QString &password
SIP_INOUT,
const QString &message = QString() );
80 void put(
const QString &realm,
const QString &username,
const QString &password );
82 bool getMasterPassword( QString &password
SIP_INOUT,
bool stored =
false );
105 QMutex *mutex() {
return &mAuthMutex; }
115 virtual bool request(
const QString &realm, QString &username
SIP_INOUT, QString &password
SIP_INOUT,
const QString &message = QString() ) = 0;
118 virtual bool requestMasterPassword( QString &password
SIP_INOUT,
bool stored =
false ) = 0;
131 QMap< QString, QPair<QString, QString> > mCredentialCache;
162 bool request(
const QString &realm, QString &username
SIP_INOUT, QString &password
SIP_INOUT,
const QString &message = QString() )
override;
187 bool request(
const QString &realm, QString &username
SIP_INOUT, QString &password
SIP_INOUT,
const QString &message = QString() )
override;