AWS IoT Device SDK C++ v2  1.34.0
AWS IoT Device SDK C++ v2
MqttCommon.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include <aws/crt/Config.h>
7 #include <aws/crt/Exports.h>
10 
11 #if !BYO_CRYPTO
12 
13 namespace Aws
14 {
15  namespace Iot
16  {
17 
18  using CreateSigningConfig = std::function<std::shared_ptr<Crt::Auth::ISigningConfig>(void)>;
19 
24  {
36  const Crt::String &signingRegion,
37  Crt::Io::ClientBootstrap *bootstrap,
38  Crt::Allocator *allocator = Crt::ApiAllocator()) noexcept;
39 
51  WebsocketConfig(const Crt::String &signingRegion, Crt::Allocator *allocator = Crt::ApiAllocator()) noexcept;
52 
63  const Crt::String &signingRegion,
64  const std::shared_ptr<Crt::Auth::ICredentialsProvider> &credentialsProvider,
65  Crt::Allocator *allocator = Crt::ApiAllocator()) noexcept;
66 
81  const std::shared_ptr<Crt::Auth::ICredentialsProvider> &credentialsProvider,
82  const std::shared_ptr<Crt::Auth::IHttpRequestSigner> &signer,
83  CreateSigningConfig createSigningConfig) noexcept;
84 
85  std::shared_ptr<Crt::Auth::ICredentialsProvider> CredentialsProvider;
86  std::shared_ptr<Crt::Auth::IHttpRequestSigner> Signer;
88 
98  };
99 
105  {
108  };
109 
110  } // namespace Iot
111 } // namespace Aws
112 
113 #endif // !BYO_CRYPTO
Aws::Crt::ApiAllocator
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
Aws::Iot::WebsocketConfig::SigningRegion
Crt::String SigningRegion
Definition: MqttCommon.h:96
Aws::Iot::WebsocketConfig::Signer
std::shared_ptr< Crt::Auth::IHttpRequestSigner > Signer
Definition: MqttCommon.h:86
Aws::Iot::WebsocketConfig
Definition: MqttCommon.h:24
Aws::Iot::WebsocketConfig::ProxyOptions
Crt::Optional< Crt::Http::HttpClientConnectionProxyOptions > ProxyOptions
Definition: MqttCommon.h:95
Aws::Iot::Pkcs12Options
Definition: MqttCommon.h:105
Aws::Iot::WebsocketConfig::CreateSigningConfigCb
CreateSigningConfig CreateSigningConfigCb
Definition: MqttCommon.h:87
Aws::Iot::Pkcs12Options::pkcs12_file
Crt::String pkcs12_file
Definition: MqttCommon.h:106
Aws::Crt::Optional
Definition: Optional.h:18
Aws::Iot::CreateSigningConfig
std::function< std::shared_ptr< Crt::Auth::ISigningConfig >(void)> CreateSigningConfig
Definition: MqttCommon.h:18
Aws::Iot::WebsocketConfig::ServiceName
Crt::String ServiceName
Definition: MqttCommon.h:97
AWS_CRT_CPP_API
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Aws
Definition: Allocator.h:11
Aws::Iot::Pkcs12Options::pkcs12_password
Crt::String pkcs12_password
Definition: MqttCommon.h:107
Aws::Crt::Allocator
aws_allocator Allocator
Definition: Allocator.h:14
Exports.h
Sigv4Signing.h
Aws::Crt::Io::ClientBootstrap
Definition: Bootstrap.h:35
MqttClient.h
Aws::Iot::WebsocketConfig::CredentialsProvider
std::shared_ptr< Crt::Auth::ICredentialsProvider > CredentialsProvider
Definition: MqttCommon.h:85
Aws::Crt::String
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:45