diff options
Diffstat (limited to 'include/LocalUser.hpp')
-rw-r--r-- | include/LocalUser.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/LocalUser.hpp b/include/LocalUser.hpp deleted file mode 100644 index d60cb38..0000000 --- a/include/LocalUser.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include "User.hpp" - -namespace odhtdb -{ - class LocalUser : public User - { - public: - static LocalUser* create(const Signature::KeyPair &keyPair, const std::string &name, Group *group) - { - return new LocalUser(keyPair, name, group); - } - - const Signature::PublicKey& getPublicKey() const override - { - return keyPair.getPublicKey(); - } - - const Signature::PrivateKey& getPrivateKey() const - { - return keyPair.getPrivateKey(); - } - private: - LocalUser(const Signature::KeyPair &_keyPair, const std::string &name, Group *group) : User(name, group), keyPair(_keyPair) {} - private: - Signature::KeyPair keyPair; - }; -} |