diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-18 11:40:41 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-18 11:40:45 +0200 |
commit | a7e7f7fdd2a9d38921476d57f305c9cd4459a556 (patch) | |
tree | d9ad3bdc3e275004a54f508025f0d52227ab18cb /common/resourceaccess.h | |
parent | ea2e02ad656640c17d520b5a22c168c3c1faef56 (diff) | |
download | sink-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/resourceaccess.h')
-rw-r--r-- | common/resourceaccess.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index b6a0b34..890cc6d 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -80,6 +80,11 @@ public: | |||
80 | return KAsync::null<void>(); | 80 | return KAsync::null<void>(); |
81 | } | 81 | } |
82 | 82 | ||
83 | virtual KAsync::Job<void> sendSecret(const QString &secret) | ||
84 | { | ||
85 | return KAsync::null<void>(); | ||
86 | } | ||
87 | |||
83 | int getResourceStatus() const | 88 | int getResourceStatus() const |
84 | { | 89 | { |
85 | return mResourceStatus; | 90 | return mResourceStatus; |
@@ -121,6 +126,7 @@ public: | |||
121 | KAsync::Job<void> | 126 | KAsync::Job<void> |
122 | sendInspectionCommand(int inspectionType,const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expecedValue) Q_DECL_OVERRIDE; | 127 | sendInspectionCommand(int inspectionType,const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expecedValue) Q_DECL_OVERRIDE; |
123 | KAsync::Job<void> sendFlushCommand(int flushType, const QByteArray &flushId) Q_DECL_OVERRIDE; | 128 | KAsync::Job<void> sendFlushCommand(int flushType, const QByteArray &flushId) Q_DECL_OVERRIDE; |
129 | KAsync::Job<void> sendSecret(const QString &secret) Q_DECL_OVERRIDE; | ||
124 | /** | 130 | /** |
125 | * Tries to connect to server, and returns a connected socket on success. | 131 | * Tries to connect to server, and returns a connected socket on success. |
126 | */ | 132 | */ |