|
| ~QgsAuthManager () override |
|
const QString | authDatabaseConfigTable () const |
| Name of the authentication database table that stores configs. More...
|
|
QSqlDatabase | authDatabaseConnection () const |
| Sets up the application instance of the authentication database connection. More...
|
|
const QString | authDatabaseServersTable () const |
| Name of the authentication database table that stores server exceptions/configs. More...
|
|
const QString | authenticationDatabasePath () const |
| The standard authentication database file in ~/.qgis3/ or defined location. More...
|
|
QString | authManTag () const |
| Simple text tag describing authentication system for message logs. More...
|
|
QgsAuthMethod * | authMethod (const QString &authMethodKey) |
| Gets authentication method from the config/provider cache via its key. More...
|
|
const QgsAuthMethodMetadata * | authMethodMetadata (const QString &authMethodKey) |
| Gets authentication method metadata via its key. More...
|
|
QStringList | authMethodsKeys (const QString &dataprovider=QString()) |
| Gets keys of supported authentication methods. More...
|
|
QgsAuthMethodsMap | authMethodsMap (const QString &dataprovider=QString()) |
| Gets available authentication methods mapped to their key. More...
|
|
QVariant | authSetting (const QString &key, const QVariant &defaultValue=QVariant(), bool decrypt=false) |
| authSetting get an authentication setting (retrieved as string and returned as QVariant( QString )) More...
|
|
QgsAuthMethodConfigsMap | availableAuthMethodConfigs (const QString &dataprovider=QString()) |
| Gets mapping of authentication config ids and their base configs (not decrypted data) More...
|
|
bool | backupAuthenticationDatabase (QString *backuppath=nullptr) |
| Close connection to current authentication database and back it up. More...
|
|
const QMap< QString, QPair< QgsAuthCertUtils::CaCertSource, QSslCertificate > > | caCertsCache () |
| caCertsCache get all CA certs mapped to their sha1 from cache. More...
|
|
const QSslCertificate | certAuthority (const QString &id) |
| Gets a certificate authority by id (sha hash) More...
|
|
const QList< QSslCertificate > | certIdentities () |
| certIdentities get certificate identities More...
|
|
const QSslCertificate | certIdentity (const QString &id) |
| certIdentity get a certificate identity by id (sha hash) More...
|
|
const QPair< QSslCertificate, QSslKey > | certIdentityBundle (const QString &id) |
| Gets a certificate identity bundle by id (sha hash). More...
|
|
const QStringList | certIdentityBundleToPem (const QString &id) |
| certIdentityBundleToPem get a certificate identity bundle by id (sha hash) returned as PEM text More...
|
|
QStringList | certIdentityIds () const |
| certIdentityIds get list of certificate identity ids from database More...
|
|
QgsAuthCertUtils::CertTrustPolicy | certificateTrustPolicy (const QSslCertificate &cert) |
| certificateTrustPolicy get trust policy for a particular certificate cert More...
|
|
const QMap< QgsAuthCertUtils::CertTrustPolicy, QStringList > | certTrustCache () |
| certTrustCache get cache of certificate sha1s, per trust policy More...
|
|
QgsAuthCertUtils::CertTrustPolicy | certTrustPolicy (const QSslCertificate &cert) |
| certTrustPolicy get whether certificate cert is trusted by user More...
|
|
void | clearMasterPassword () |
| Clear supplied master password. More...
|
|
QgsAuthMethod * | configAuthMethod (const QString &authcfg) |
| Gets authentication method from the config/provider cache. More...
|
|
QString | configAuthMethodKey (const QString &authcfg) const |
| Gets key of authentication method associated with config ID. More...
|
|
QString | configIdRegex () const |
| Returns the regular expression for authcfg=.{7} key/value token for authentication ids. More...
|
|
QStringList | configIds () const |
| Gets list of authentication ids from database. More...
|
|
bool | configIdUnique (const QString &id) const |
| Verify if provided authentication id is unique. More...
|
|
const QList< QSslCertificate > | databaseCAs () |
| databaseCAs get database-stored certificate authorities More...
|
|
QgsAuthCertUtils::CertTrustPolicy | defaultCertTrustPolicy () |
| Gets the default certificate trust policy preferred by user. More...
|
|
const QString | disabledMessage () const |
| Standard message for when QCA's qca-ossl plugin is missing and system is disabled. More...
|
|
void | dumpIgnoredSslErrorsCache_ () |
| Utility function to dump the cache for debug purposes. More...
|
|
bool | eraseAuthenticationDatabase (bool backup, QString *backuppath=nullptr) |
| Erase all rows from all tables in authentication database. More...
|
|
bool | existsAuthSetting (const QString &key) |
| Check if an authentication setting exists. More...
|
|
bool | existsCertAuthority (const QSslCertificate &cert) |
| Check if a certificate authority exists. More...
|
|
bool | existsCertIdentity (const QString &id) |
| Check if a certificate identity exists. More...
|
|
bool | existsSslCertCustomConfig (const QString &id, const QString &hostport) |
| Check if SSL certificate custom config exists. More...
|
|
bool | exportAuthenticationConfigsToXml (const QString &filename, const QStringList &authcfgs, const QString &password=QString()) |
| Export authentication configurations to an XML file. More...
|
|
const QList< QSslCertificate > | extraFileCAs () |
| extraFileCAs extra file-based certificate authorities More...
|
|
bool | hasConfigId (const QString &txt) const |
| Returns whether a string includes an authcfg ID token. More...
|
|
QHash< QString, QSet< QSslError::SslError > > | ignoredSslErrorCache () |
| ignoredSslErrorCache Get ignored SSL error cache, keyed with cert/connection's sha:host:port. More...
|
|
bool | importAuthenticationConfigsFromXml (const QString &filename, const QString &password=QString(), bool overwrite=false) |
| Import authentication configurations from an XML file. More...
|
|
bool | init (const QString &pluginPath=QString(), const QString &authDatabasePath=QString()) |
| init initialize QCA, prioritize qca-ossl plugin and optionally set up the authentication database More...
|
|
bool | initSslCaches () |
| Initialize various SSL authentication caches. More...
|
|
bool | isDisabled () const |
| Whether QCA has the qca-ossl plugin, which a base run-time requirement. More...
|
|
bool | loadAuthenticationConfig (const QString &authcfg, QgsAuthMethodConfig &mconfig, bool full=false) |
| Load an authentication config from the database into subclass. More...
|
|
const QMap< QString, QSslCertificate > | mappedDatabaseCAs () |
| mappedDatabaseCAs get sha1-mapped database-stored certificate authorities More...
|
|
bool | masterPasswordHashInDatabase () const |
| Verify a password hash existing in authentication database. More...
|
|
bool | masterPasswordIsSet () const |
| Whether master password has be input and verified, i.e. authentication database is accessible. More...
|
|
bool | masterPasswordSame (const QString &pass) const |
| Check whether supplied password is the same as the one already set. More...
|
|
bool | passwordHelperDelete () |
| Delete master password from wallet. More...
|
|
bool | passwordHelperEnabled () const |
| Password helper enabled getter. More...
|
|
const QString | passwordHelperErrorMessage () |
| Error message getter. More...
|
|
bool | passwordHelperLoggingEnabled () const |
| Password helper logging enabled getter. More...
|
|
bool | passwordHelperSync () |
| Store the password manager into the wallet. More...
|
|
bool | rebuildCaCertsCache () |
| Rebuild certificate authority cache. More...
|
|
bool | rebuildCertTrustCache () |
| Rebuild certificate authority cache. More...
|
|
bool | rebuildIgnoredSslErrorCache () |
| Rebuild ignoredSSL error cache. More...
|
|
bool | rebuildTrustedCaCertsCache () |
| Rebuild trusted certificate authorities cache. More...
|
|
bool | registerCoreAuthMethods () |
| Instantiate and register existing C++ core authentication methods from plugins. More...
|
|
bool | removeAllAuthenticationConfigs () |
| Clear all authentication configs from table in database and from provider caches. More...
|
|
bool | removeAuthenticationConfig (const QString &authcfg) |
| Remove an authentication config in the database. More...
|
|
bool | removeAuthSetting (const QString &key) |
| Remove an authentication setting. More...
|
|
bool | removeCertAuthority (const QSslCertificate &cert) |
| Remove a certificate authority. More...
|
|
bool | removeCertIdentity (const QString &id) |
| Remove a certificate identity. More...
|
|
bool | removeCertTrustPolicies (const QList< QSslCertificate > &certs) |
| Remove a group certificate authorities. More...
|
|
bool | removeCertTrustPolicy (const QSslCertificate &cert) |
| Remove a certificate authority. More...
|
|
bool | removeSslCertCustomConfig (const QString &id, const QString &hostport) |
| Remove an SSL certificate custom config. More...
|
|
bool | resetMasterPassword (const QString &newpass, const QString &oldpass, bool keepbackup, QString *backuppath=nullptr) |
| Reset the master password to a new one, then re-encrypt all previous configs in a new database file, optionally backup curren database. More...
|
|
bool | scheduledAuthDatabaseErase () |
| Whether there is a scheduled opitonal erase of authentication database. More...
|
|
bool | setDefaultCertTrustPolicy (QgsAuthCertUtils::CertTrustPolicy policy) |
| Sets the default certificate trust policy preferred by user. More...
|
|
bool | setMasterPassword (bool verify=false) |
| Main call to initially set or continually check master password is set. More...
|
|
bool | setMasterPassword (const QString &pass, bool verify=false) |
| Overloaded call to reset master password or set it initially without user interaction. More...
|
|
void | setPasswordHelperEnabled (bool enabled) |
| Password helper enabled setter. More...
|
|
void | setPasswordHelperLoggingEnabled (bool enabled) |
| Password helper logging enabled setter. More...
|
|
void | setScheduledAuthDatabaseErase (bool scheduleErase) |
| Schedule an optional erase of authentication database, starting when mutex is lockable. More...
|
|
void | setScheduledAuthDatabaseEraseRequestEmitted (bool emitted) |
| Re-emit a signal to schedule an optional erase of authentication database. More...
|
|
const QgsAuthConfigSslServer | sslCertCustomConfig (const QString &id, const QString &hostport) |
| sslCertCustomConfig get an SSL certificate custom config by id (sha hash) and hostport (host:port) More...
|
|
const QgsAuthConfigSslServer | sslCertCustomConfigByHost (const QString &hostport) |
| sslCertCustomConfigByHost get an SSL certificate custom config by hostport (host:port) More...
|
|
const QList< QgsAuthConfigSslServer > | sslCertCustomConfigs () |
| sslCertCustomConfigs get SSL certificate custom configs More...
|
|
bool | storeAuthenticationConfig (QgsAuthMethodConfig &mconfig, bool overwrite=false) |
| Store an authentication config in the database. More...
|
|
bool | storeAuthSetting (const QString &key, const QVariant &value, bool encrypt=false) |
| Store an authentication setting (stored as string via QVariant( value ).toString() ) More...
|
|
bool | storeCertAuthorities (const QList< QSslCertificate > &certs) |
| Store multiple certificate authorities. More...
|
|
bool | storeCertAuthority (const QSslCertificate &cert) |
| Store a certificate authority. More...
|
|
bool | storeCertIdentity (const QSslCertificate &cert, const QSslKey &key) |
| Store a certificate identity. More...
|
|
bool | storeCertTrustPolicy (const QSslCertificate &cert, QgsAuthCertUtils::CertTrustPolicy policy) |
| Store user trust value for a certificate. More...
|
|
bool | storeSslCertCustomConfig (const QgsAuthConfigSslServer &config) |
| Store an SSL certificate custom config. More...
|
|
QgsAuthMethod::Expansions | supportedAuthMethodExpansions (const QString &authcfg) |
| Gets supported authentication method expansion(s), e.g. More...
|
|
const QList< QSslCertificate > | systemRootCAs () |
| systemRootCAs get root system certificate authorities More...
|
|
const QList< QSslCertificate > | trustedCaCerts (bool includeinvalid=false) |
| trustedCaCerts get list of all trusted CA certificates More...
|
|
const QList< QSslCertificate > | trustedCaCertsCache () |
| trustedCaCertsCache cache of trusted certificate authorities, ready for network connections More...
|
|
const QByteArray | trustedCaCertsPemText () |
| trustedCaCertsPemText get concatenated string of all trusted CA certificates More...
|
|
const QString | uniqueConfigId () const |
| Gets a unique generated 7-character string to assign to as config id. More...
|
|
const QList< QSslCertificate > | untrustedCaCerts (QList< QSslCertificate > trustedCAs=QList< QSslCertificate >()) |
| untrustedCaCerts get list of untrusted certificate authorities More...
|
|
bool | updateAuthenticationConfig (const QgsAuthMethodConfig &config) |
| Update an authentication config in the database. More...
|
|
void | updateConfigAuthMethods () |
| Sync the confg/authentication method cache with what is in database. More...
|
|
bool | updateDataSourceUriItems (QStringList &connectionItems, const QString &authcfg, const QString &dataprovider=QString()) |
| Provider call to update a QgsDataSourceUri with an authentication config. More...
|
|
bool | updateIgnoredSslErrorsCache (const QString &shahostport, const QList< QSslError > &errors) |
| Update ignored SSL error cache with possible ignored SSL errors, using sha:host:port key. More...
|
|
bool | updateIgnoredSslErrorsCacheFromConfig (const QgsAuthConfigSslServer &config) |
| Update ignored SSL error cache with possible ignored SSL errors, using server config. More...
|
|
bool | updateNetworkProxy (QNetworkProxy &proxy, const QString &authcfg, const QString &dataprovider=QString()) |
| Provider call to update a QNetworkProxy with an authentication config. More...
|
|
bool | updateNetworkReply (QNetworkReply *reply, const QString &authcfg, const QString &dataprovider=QString()) |
| Provider call to update a QNetworkReply with an authentication config (used to skip known SSL errors, etc.) More...
|
|
bool | updateNetworkRequest (QNetworkRequest &request, const QString &authcfg, const QString &dataprovider=QString()) |
| Provider call to update a QNetworkRequest with an authentication config. More...
|
|
bool | verifyMasterPassword (const QString &compare=QString()) |
| Verify the supplied master password against any existing hash in authentication database. More...
|
|