Implementation of CredentialsManager that stores credentials in plain-text.
More...
#include <credentialmanager.h>
|
| FallbackCredentialsManager (QObject *parent=nullptr) |
|
void | store (const QString &server, const QString &user, const QString &token) override |
| Stores a token.
|
|
void | get (const QString &server, const QString &user) const override |
| Retrieves a stored token. Emits tokenRetrieved when the token is retrieved.
|
|
void | remove (const QString &server, const QString &user) override |
| removes a token
|
|
void | listServers () const override |
| Gives the list of servers that have a user stored with a token.
|
|
void | listUsers (const QString &server) override |
| List the users with a token on a server.
|
|
bool | isSecure () const override |
|
Implementation of CredentialsManager that stores credentials in plain-text.
◆ FallbackCredentialsManager()
FallbackCredentialsManager::FallbackCredentialsManager |
( |
QObject * | parent = nullptr | ) |
|
◆ get()
void FallbackCredentialsManager::get |
( |
const QString & | server, |
|
|
const QString & | user ) const |
|
overridevirtual |
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 from CredentialsManager.
◆ isSecure()
bool FallbackCredentialsManager::isSecure |
( |
| ) |
const |
|
inlineoverridevirtual |
- Returns
- if the implementation of this interface stores the token in a secure place.
Reimplemented from CredentialsManager.
◆ listServers()
void FallbackCredentialsManager::listServers |
( |
| ) |
const |
|
overridevirtual |
Gives the list of servers that have a user stored with a token.
Reimplemented from CredentialsManager.
◆ listUsers()
void FallbackCredentialsManager::listUsers |
( |
const QString & | server | ) |
|
|
overridevirtual |
List the users with a token on a server.
- Parameters
-
Reimplemented from CredentialsManager.
◆ remove()
void FallbackCredentialsManager::remove |
( |
const QString & | server, |
|
|
const QString & | user ) |
|
overridevirtual |
◆ store()
void FallbackCredentialsManager::store |
( |
const QString & | server, |
|
|
const QString & | user, |
|
|
const QString & | token ) |
|
overridevirtual |
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 from CredentialsManager.
The documentation for this class was generated from the following files: