17 #ifndef HTTPDATAPROCESSOR_HPP_
18 #define HTTPDATAPROCESSOR_HPP_
26 #include <boost/noncopyable.hpp>
28 #include <botan/base64.h>
53 void setEncoderDecoder(std::shared_ptr<IEncoderDecoder> encoderDecoder) { encDec_ = encoderDecoder; }
56 std::shared_ptr<IHttpRequest> createHttpRequest(
const HttpUrl& url,
const std::vector<std::uint8_t>& data,
bool sign);
61 std::shared_ptr<IEncoderDecoder> encDec_;
std::string retrieveBootstrapResponse(const IHttpResponse &response)
HttpDataProcessor(const PublicKey &pubKey, const PrivateKey &privKey, const PublicKey &remoteKey)
std::shared_ptr< IHttpRequest > createBootstrapRequest(const HttpUrl &url, const std::vector< std::uint8_t > &data)
std::shared_ptr< IHttpRequest > createOperationRequest(const HttpUrl &url, const std::vector< std::uint8_t > &data)
void setEncoderDecoder(std::shared_ptr< IEncoderDecoder > encoderDecoder)
Botan::MemoryVector< std::uint8_t > PublicKey
std::shared_ptr< HttpDataProcessor > HttpDataProcessorPtr
std::string retrieveOperationResponse(const IHttpResponse &response)