AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EventStreamEncoder.h
Go to the documentation of this file.
1
6#pragma once
7
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 {
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
56 bool InitSignedStruct(const aws_event_stream_message* msg, aws_event_stream_message* signedmsg);
57
59 Aws::String m_signatureSeed;
60 };
61 }
62 }
63}
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
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