QgsCredentialsConsole class

Implementation of credentials interface for the console.

This class outputs message to the standard output and retrieves input from standard input. Therefore it won't be the right choice for apps without GUI.

Base classes

class QgsCredentials
Interface for requesting credentials in QGIS in GUI independent way.

Signals

void destroyed()
signals that object will be destroyed and shouldn't be used anymore

Protected functions

auto request(const QString& realm, QString& username, QString& password, const QString& message = QString()) -> bool override
request a password
auto requestMasterPassword(QString& password, bool stored = false) -> bool override
request a master password