PrivMX Endpoint v2.7.0
Loading...
Searching...
No Matches
UserVerifierInterface.hpp
1#ifndef _PRIVMXLIB_ENDPOINT_CORE_USERVERIFIERINTERFACE_HPP_
2#define _PRIVMXLIB_ENDPOINT_CORE_USERVERIFIERINTERFACE_HPP_
3
4#include <string>
5#include <optional>
6#include "privmx/endpoint/core/Types.hpp"
7
8namespace privmx {
9namespace endpoint {
10namespace core {
11
16 const std::string contextId;
20 const std::string senderId;
24 const std::string senderPubKey;
28 const int64_t date;
32 const std::optional<BridgeIdentity> bridgeIdentity;
33};
34
40public:
48 virtual std::vector<bool> verify(const std::vector<VerificationRequest>& request) = 0;
49protected:
50 virtual ~UserVerifierInterface() = default;
51};
52
53} // namespace core
54} // namespace endpoint
55} // namespace privmx
56
57#endif // _PRIVMXLIB_ENDPOINT_CORE_USERVERIFIERINTERFACE_HPP_
Definition UserVerifierInterface.hpp:39
virtual std::vector< bool > verify(const std::vector< VerificationRequest > &request)=0
Definition UserVerifierInterface.hpp:12
const std::string senderPubKey
Definition UserVerifierInterface.hpp:24
const int64_t date
Definition UserVerifierInterface.hpp:28
const std::string contextId
Definition UserVerifierInterface.hpp:16
const std::string senderId
Definition UserVerifierInterface.hpp:20
const std::optional< BridgeIdentity > bridgeIdentity
Definition UserVerifierInterface.hpp:32