aboutsummaryrefslogtreecommitdiff
path: root/include/odhtdb/RemoteUser.hpp
blob: 2658132c02d6ef26ebc4344602f21efff7bc2f31 (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, Group *group)
        {
            return new RemoteUser(publicKey, group);
        }
        
        const Signature::PublicKey& getPublicKey() const override
        {
            return publicKey;
        }
    private:
        RemoteUser(const Signature::PublicKey &_publicKey, Group *group) : User(User::Type::REMOTE, group), publicKey(_publicKey) {}
    private:
        Signature::PublicKey publicKey;
    };
}