AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventStreamEncoder.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/event-stream/event_stream.h>
11
12namespace Aws
13{
14 namespace Client
15 {
16 class AWSAuthSigner;
17 }
18
19 namespace Utils
20 {
21 namespace Event
22 {
28 class AWS_CORE_API EventStreamEncoder
29 {
30 public:
32
33
34 void SetSignatureSeed(const Aws::String& seed) { m_signatureSeed = seed; }
35
36 void SetSigner(Aws::Client::AWSAuthSigner* signer) { m_signer = signer; }
37
43 private:
49 bool InitEncodedStruct(const Aws::Utils::Event::Message& msg, aws_event_stream_message* encoded);
50
57 bool InitSignedStruct(const aws_event_stream_message* payload, aws_event_stream_message* signedmsg);
58
60 Aws::String m_signatureSeed;
61 };
62 }
63 }
64}
Aws::Vector< unsigned char > EncodeAndSign(const Aws::Utils::Event::Message &msg)
EventStreamEncoder(Aws::Client::AWSAuthSigner *signer=nullptr)
void SetSigner(Aws::Client::AWSAuthSigner *signer)
void SetSignatureSeed(const Aws::String &seed)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97
std::vector< T, Aws::Allocator< T > > Vector
Definition AWSVector.h:17