azure-core-amqp
Loading...
Searching...
No Matches
sasl_transport.hpp
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4#pragma once
5
6#include "transport.hpp"
7
8#include <string>
9
10namespace Azure { namespace Core { namespace Amqp { namespace Network { namespace _internal {
11
15 class SaslTransportFactory final {
16
17 public:
27 static Transport Create(
28 std::string const& saslKeyName,
29 std::string const& saslKey,
30 std::string const& hostName,
31 uint16_t hostPort,
32 TransportEvents* eventHandler = nullptr);
33
41 static Transport Create(
42 std::string const& hostName,
43 uint16_t hostPort,
44 TransportEvents* eventHandler = nullptr);
45
46 SaslTransportFactory() = delete;
47 };
48
49}}}}} // namespace Azure::Core::Amqp::Network::_internal