1#ifndef TENDUKE_TEST_MOCKS_KEYFACTORYMOCK_H
2#define TENDUKE_TEST_MOCKS_KEYFACTORYMOCK_H
4#include "crypto/KeyFactory.h"
5#include "gmock/gmock.h"
7namespace tenduke {
namespace test {
namespace mocks {
11 MOCK_METHOD(std::unique_ptr<tenduke::crypto::PublicKey>,
publicKeyFromPEM, (
const std::string &), (
const,
override));
Creates cryptographical keys.
Definition KeyFactory.h:16
virtual std::unique_ptr< tenduke::crypto::PublicKey > publicKeyFromPEM(const std::string &publicKeyAsPEM) const =0
Creates a tenduke::crypto::PublicKey from PEM.
virtual std::unique_ptr< tenduke::crypto::PublicKey > publicKeyFromModuloAndExponent(const tenduke::utl::BinaryData &modulo, const tenduke::utl::BinaryData &exponent) const =0
Creates a RSA tenduke::crypto::PublicKey from modulo and exponent.
Definition KeyFactoryMock.h:9
A holder of binary data.
Definition BinaryData.h:13
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4