https://bugs.kde.org/show_bug.cgi?id=486474

--- Comment #11 from Alexander Reinholdt <alexander.reinho...@kdemail.net> ---
I thought about the serialized approach and possible alternatives.

I don't like serialized one, because you squeeze all login credentials into one
entry and you either have to read it once and store all credentials in memory
(i.e. in a hash or map) or you have to read everything each time the program
asks for credentials. In any case you have to implement some search logic to
pick the right credentials. Similar things are true for writing/saving. This is
too much overhead for me.

Another way would be to store the username and password for each server or
share separately, but have a list of all network items in the secure storage.
After starting to implement this, I did not like it and also decided against
it.

I implemented to possibility to edit the authentication information long time
ago. Looking back, I almost never used it except defining the default login
credentials. If the username or password for a server or share need to be
changed, you can do this with/in the password dialog withou even opening the
configuration dialog. The default credentials can still be defined there. And
when you want to clean up, you can do this with the GUI of the password
manager.

So, for the time being, I will leave the code as it is now. If QtKeychains API
allows for accessing the list of all login credentials in the future, I will
maybe reimplement the functionality.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to