signon  8.57
SignonDaemonNS::DefaultSecretsStorage Class Reference

SQLite-based implementation of the AbstractSecretsStorage interface. More...

#include <default-secrets-storage.h>

Inheritance diagram for SignonDaemonNS::DefaultSecretsStorage:
Collaboration diagram for SignonDaemonNS::DefaultSecretsStorage:

Public Member Functions

 DefaultSecretsStorage (QObject *parent=0)
 
 ~DefaultSecretsStorage ()
 
bool initialize (const QVariantMap &configuration)
 
bool close ()
 
bool clear ()
 
bool updateCredentials (const quint32 id, const QString &username, const QString &password)
 
bool removeCredentials (const quint32 id)
 
bool loadCredentials (const quint32 id, QString &username, QString &password)
 
QVariantMap loadData (quint32 id, quint32 method)
 
bool storeData (quint32 id, quint32 method, const QVariantMap &data)
 
bool removeData (quint32 id, quint32 method)
 

Detailed Description

SQLite-based implementation of the AbstractSecretsStorage interface.

The secrets are stored in a SQLite DB, unencrypted. To achieve encryption, you can pair this class with a CryptoManager which provide an encrypted filesystem.

Definition at line 73 of file default-secrets-storage.h.

Constructor & Destructor Documentation

◆ DefaultSecretsStorage()

DefaultSecretsStorage::DefaultSecretsStorage ( QObject *  parent = 0)
explicit

Definition at line 274 of file default-secrets-storage.cpp.

◆ ~DefaultSecretsStorage()

DefaultSecretsStorage::~DefaultSecretsStorage ( )

Definition at line 279 of file default-secrets-storage.cpp.

References close().

Member Function Documentation

◆ clear()

bool DefaultSecretsStorage::clear ( )

◆ close()

bool DefaultSecretsStorage::close ( )

◆ initialize()

bool DefaultSecretsStorage::initialize ( const QVariantMap &  configuration)

◆ loadCredentials()

bool DefaultSecretsStorage::loadCredentials ( const quint32  id,
QString &  username,
QString &  password 
)

◆ loadData()

QVariantMap DefaultSecretsStorage::loadData ( quint32  id,
quint32  method 
)

◆ removeCredentials()

bool DefaultSecretsStorage::removeCredentials ( const quint32  id)

◆ removeData()

bool DefaultSecretsStorage::removeData ( quint32  id,
quint32  method 
)

◆ storeData()

bool DefaultSecretsStorage::storeData ( quint32  id,
quint32  method,
const QVariantMap &  data 
)

◆ updateCredentials()

bool DefaultSecretsStorage::updateCredentials ( const quint32  id,
const QString &  username,
const QString &  password 
)

The documentation for this class was generated from the following files: