19class KeyStorage:
public QuasarAppUtils::Service<KeyStorage>
30 QByteArray
add(
const QByteArray& value,
const QString& alias = {});
36 void remove(
const QByteArray& key);
42 void remove(
const QString& alias);
50 QByteArray
get(
const QByteArray& key);
57 QByteArray
get(
const QString& alias);
60 QHash<QByteArray, QByteArray> _storage;
61 QHash<QString, QByteArray> _aliases;
The KeyStorage class the storage store seccrets values on the simple key - value table....
QByteArray get(const QByteArray &key)
get return value by access key.
QByteArray add(const QByteArray &value, const QString &alias={})
add adds to storage new value, and return access key.
void remove(const QByteArray &key)
remove This method remove secret from storage by key.