10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
LicensingConfiguration.h
1#ifndef TENDUKE_EE_LICENSING_LICENSINGCONFIGURATION_H
2#define TENDUKE_EE_LICENSING_LICENSINGCONFIGURATION_H
3
4#include "../config/ClientProperties.h"
5#include "crypto/PublicKey.h"
6#include "crypto/MessageDigest.h"
7
8#include <memory>
9#include <string>
10
11namespace tenduke { namespace ee { namespace licensing {
12
13
18{
19public:
28 std::string endpoint,
29 ::tenduke::ee::ClientProperties clientProperties,
30 std::shared_ptr<const tenduke::crypto::PublicKey> verificationKey,
32 ) :
33 endpoint(std::move(endpoint)),
34 clientProperties(std::move(clientProperties)),
35 verificationKey(std::move(verificationKey)),
36 algorithm(algorithm)
37 {}
38
39 virtual ~LicensingConfiguration() = default;
40
46
51 const std::string & getEndpoint() const {return endpoint;}
52
57 const ::tenduke::ee::ClientProperties & getClientProperties() const {return clientProperties;}
58
63 std::shared_ptr<const tenduke::crypto::PublicKey> getVerificationKey() const {return verificationKey;}
64
65private:
66 const ::tenduke::ee::ClientProperties clientProperties;
67 const std::string endpoint;
68 const std::shared_ptr<const tenduke::crypto::PublicKey> verificationKey;
70};
71
72
73}}}
74
75#endif // TENDUKE_EE_LICENSING_LICENSINGCONFIGURATION_H
Algorithm
Supported algorithms.
Definition MessageDigest.h:24
10Duke licensing configuration.
Definition LicensingConfiguration.h:18
const std::string & getEndpoint() const
Returns URL of 10Duke licensing API.
Definition LicensingConfiguration.h:51
LicensingConfiguration(std::string endpoint, ::tenduke::ee::ClientProperties clientProperties, std::shared_ptr< const tenduke::crypto::PublicKey > verificationKey, tenduke::crypto::MessageDigest::Algorithm algorithm)
Constructs new instance.
Definition LicensingConfiguration.h:27
std::shared_ptr< const tenduke::crypto::PublicKey > getVerificationKey() const
Returns cryptographical key for verifying responses.
Definition LicensingConfiguration.h:63
tenduke::crypto::MessageDigest::Algorithm getAlgorithm() const
Returns the cryptographical algorithm for verifying responses.
Definition LicensingConfiguration.h:45
const ::tenduke::ee::ClientProperties & getClientProperties() const
Returns client properties.
Definition LicensingConfiguration.h:57
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4
Client properties.
Definition ClientProperties.h:14