aboutsummaryrefslogtreecommitdiff
path: root/include/odhtdb/RemoteUser.hpp
blob: 9dc8f968b1f56f2d627c88bf5e8b027144eb86af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "User.hpp"

namespace odhtdb
{
    class RemoteUser : public User
    {
    public:
        static RemoteUser* create(const Signature::PublicKey &publicKey, const std::string &name, Group *group)
        {
            return new RemoteUser(publicKey, name, group);
        }
        
        const Signature::PublicKey& getPublicKey() const override
        {
            return publicKey;
        }
    private:
        RemoteUser(const Signature::PublicKey &_publicKey, const std::string &name, Group *group) : User(User::Type::REMOTE, name, group), publicKey(_publicKey){}
    private:
        Signature::PublicKey publicKey;
    };
}