21class KeyStorage:
public QuasarAppUtils::Service<KeyStorage>
24 KeyStorage(
const QSharedPointer<DBSecret::IDataBase>& db);
32 QByteArray
add(
const QByteArray& value,
const QString& alias = {});
51 QByteArray
get(
const QByteArray& key);
58 QByteArray
get(
const QString& alias);
61 QSharedPointer<DBSecret::IDataBase> _db;
QByteArray get(const QByteArray &key)
get return value by access key.
void remove(const QString &alias)
remove This method remove seccret value by alias.
QByteArray add(const QByteArray &value, const QString &alias={})
add adds to storage new value, and return access key.
QByteArray get(const QString &alias)
get return value by alias of key.
void remove(const QByteArray &key)
remove This method remove secret from storage by key.