The CredentialsManager class stores credentials for users.
More...
#include <credentialmanager.h>
|
void | tokenRetrieved (const QString &server, const QString &user, const QString &token) const |
|
void | serversListed (const QStringList &servers) const |
|
void | usersListed (const QString &server, const QStringList &users) const |
|
|
virtual void | store (const QString &server, const QString &user, const QString &token) |
| Stores a token.
|
|
virtual void | get (const QString &server, const QString &user) const |
| Retrieves a stored token. Emits tokenRetrieved when the token is retrieved.
|
|
virtual void | remove (const QString &server, const QString &user) |
| removes a token
|
|
virtual void | listServers () const |
| Gives the list of servers that have a user stored with a token.
|
|
virtual void | listUsers (const QString &server) |
| List the users with a token on a server.
|
|
virtual bool | isSecure () const |
|
The CredentialsManager class stores credentials for users.
You can get an instance using instance(), which may depend on the platform being used. Since the implementation may be asynchronous, the methods won't return anything, they emit a corresponding signal instead.
◆ CredentialsManager()
CredentialsManager::CredentialsManager |
( |
QObject * | parent = nullptr | ) |
|
|
inlineexplicitprotected |
◆ get()
virtual void CredentialsManager::get |
( |
const QString & | server, |
|
|
const QString & | user ) const |
|
inlinevirtual |
Retrieves a stored token. Emits tokenRetrieved when the token is retrieved.
- Parameters
-
server | The serverId to retrieve the token from. |
user | The user to retrieve the token for |
Reimplemented in FallbackCredentialsManager.
◆ isSecure()
virtual bool CredentialsManager::isSecure |
( |
| ) |
const |
|
inlinevirtual |
◆ listServers()
virtual void CredentialsManager::listServers |
( |
| ) |
const |
|
inlinevirtual |
◆ listUsers()
virtual void CredentialsManager::listUsers |
( |
const QString & | server | ) |
|
|
inlinevirtual |
◆ newInstance()
Retrieves an implementation which can store this token.
- Parameters
-
The | parent to set the implementations QObject parent to |
This method is always guaranteed to return an instance.
- Returns
- An implementation of this interface (may vary acrros platform).
◆ remove()
virtual void CredentialsManager::remove |
( |
const QString & | server, |
|
|
const QString & | user ) |
|
inlinevirtual |
◆ serversListed
void CredentialsManager::serversListed |
( |
const QStringList & | servers | ) |
const |
|
signal |
◆ store()
virtual void CredentialsManager::store |
( |
const QString & | server, |
|
|
const QString & | user, |
|
|
const QString & | token ) |
|
inlinevirtual |
Stores a token.
- Parameters
-
server | The server to store the token for |
user | The user to store the token for. |
token | The token to store. |
Reimplemented in FallbackCredentialsManager.
◆ tokenRetrieved
void CredentialsManager::tokenRetrieved |
( |
const QString & | server, |
|
|
const QString & | user, |
|
|
const QString & | token ) const |
|
signal |
◆ usersListed
void CredentialsManager::usersListed |
( |
const QString & | server, |
|
|
const QStringList & | users ) const |
|
signal |
The documentation for this class was generated from the following files: