diff options
author | Aleksi Lindeman <aleksi_888@hotmail.com> | 2018-02-10 03:38:47 +0100 |
---|---|---|
committer | Aleksi Lindeman <aleksi_888@hotmail.com> | 2018-02-10 03:39:41 +0100 |
commit | be3c931f9b2db357c0b4306ad248c968d90254a3 (patch) | |
tree | 8b7943e750c27ed0be07c0354827eb3856423a71 /include/User.hpp | |
parent | 28efc0068f47ec787791a07a63d720710068c095 (diff) |
Add private/public key for users
Diffstat (limited to 'include/User.hpp')
-rw-r--r-- | include/User.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/User.hpp b/include/User.hpp index e542434..ab5872a 100644 --- a/include/User.hpp +++ b/include/User.hpp @@ -1,5 +1,6 @@ #pragma once +#include "Signature.hpp" #include <string> #include <stdexcept> @@ -18,7 +19,10 @@ namespace odhtdb class User { public: + virtual ~User(){} + const std::string& getName() const { return name; } + virtual const Signature::PublicKey& getPublicKey() const = 0; protected: User(const std::string &_name) : name(_name) { @@ -26,7 +30,6 @@ namespace odhtdb throw UserNameTooLongException(name); } private: - // TODO: Add public key std::string name; }; -}
\ No newline at end of file +} |