17 #ifndef HTTPDATAPROCESSOR_HPP_
18 #define HTTPDATAPROCESSOR_HPP_
26 #include <boost/noncopyable.hpp>
28 #include <botan/base64.h>
46 encDec_(new
RsaEncoderDecoder(pubKey, privKey, remoteKey, context)), context_(context) { }
55 void setEncoderDecoder(std::shared_ptr<IEncoderDecoder> encoderDecoder) { encDec_ = encoderDecoder; }
58 std::shared_ptr<IHttpRequest> createHttpRequest(
const HttpUrl& url,
const std::vector<std::uint8_t>& data,
bool sign);
63 std::shared_ptr<IEncoderDecoder> encDec_;
Botan::secure_vector< std::uint8_t > PublicKey
std::string retrieveBootstrapResponse(const IHttpResponse &response)
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)
HttpDataProcessor(IKaaClientContext &context)
HttpDataProcessor(const PublicKey &pubKey, const PrivateKey &privKey, const PublicKey &remoteKey, IKaaClientContext &context)
std::shared_ptr< HttpDataProcessor > HttpDataProcessorPtr
std::string retrieveOperationResponse(const IHttpResponse &response)