1#ifndef TENDUKE_EE_LICENSING_LICENSINGCONFIGURATION_H
2#define TENDUKE_EE_LICENSING_LICENSINGCONFIGURATION_H
4#include "../config/ClientProperties.h"
5#include "crypto/PublicKey.h"
6#include "crypto/MessageDigest.h"
11namespace tenduke {
namespace ee {
namespace licensing {
30 std::shared_ptr<const tenduke::crypto::PublicKey> verificationKey,
33 endpoint(std::move(endpoint)),
34 clientProperties(std::move(clientProperties)),
35 verificationKey(std::move(verificationKey)),
63 std::shared_ptr<const tenduke::crypto::PublicKey>
getVerificationKey()
const {
return verificationKey;}
66 const ::tenduke::ee::ClientProperties clientProperties;
67 const std::string endpoint;
68 const std::shared_ptr<const tenduke::crypto::PublicKey> verificationKey;
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