summaryrefslogtreecommitdiffstats
path: root/common/genericresource.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-18 11:40:41 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-18 11:40:45 +0200
commita7e7f7fdd2a9d38921476d57f305c9cd4459a556 (patch)
treed9ad3bdc3e275004a54f508025f0d52227ab18cb /common/genericresource.h
parentea2e02ad656640c17d520b5a22c168c3c1faef56 (diff)
downloadsink-a7e7f7fdd2a9d38921476d57f305c9cd4459a556.tar.gz
sink-a7e7f7fdd2a9d38921476d57f305c9cd4459a556.zip
Avoid storing the password in the configuration
The password (or any other secret), is now cached in the client process (in-memory only), and delivered to the resource via command. The resource avoids doing any operations against the source until the secret is available.
Diffstat (limited to 'common/genericresource.h')
-rw-r--r--common/genericresource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/genericresource.h b/common/genericresource.h
index bffc697..4e86b75 100644
--- a/common/genericresource.h
+++ b/common/genericresource.h
@@ -47,6 +47,8 @@ public:
47 static void removeFromDisk(const QByteArray &instanceIdentifier); 47 static void removeFromDisk(const QByteArray &instanceIdentifier);
48 static qint64 diskUsage(const QByteArray &instanceIdentifier); 48 static qint64 diskUsage(const QByteArray &instanceIdentifier);
49 49
50 virtual void setSecret(const QString &s) Q_DECL_OVERRIDE;
51
50 //TODO Remove this API, it's only used in tests 52 //TODO Remove this API, it's only used in tests
51 KAsync::Job<void> synchronizeWithSource(const Sink::QueryBase &query); 53 KAsync::Job<void> synchronizeWithSource(const Sink::QueryBase &query);
52 //TODO Remove this API, it's only used in tests 54 //TODO Remove this API, it's only used in tests