RMQ - RabbitMQ C++ Library
rmqt_secureendpoint.h
1// Copyright 2020-2023 Bloomberg Finance L.P.
2// SPDX-License-Identifier: Apache-2.0
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#ifndef INCLUDED_RMQT_SECUREENDPOINT
17#define INCLUDED_RMQT_SECUREENDPOINT
18
19#include <rmqt_securityparameters.h>
20#include <rmqt_simpleendpoint.h>
21
22#include <bsl_cstdint.h>
23#include <bsl_memory.h>
24#include <bsl_string.h>
25#include <bsls_keyword.h>
26
27namespace BloombergLP {
28namespace rmqt {
29
31
33 private:
34 bsl::shared_ptr<SecurityParameters> d_params;
35
36 public:
37 SecureEndpoint(const bsl::string& address,
38 const bsl::string& vhost,
39 bsl::uint16_t port,
40 const bsl::shared_ptr<SecurityParameters>& params);
42
43 bsl::shared_ptr<SecurityParameters>
44 securityParameters() const BSLS_KEYWORD_OVERRIDE;
45
46 protected:
47 bsl::string protocol() const BSLS_KEYWORD_OVERRIDE;
48};
49
50} // namespace rmqt
51} // namespace BloombergLP
52
53#endif
Base class for AMQP endpoint.
Definition: rmqt_secureendpoint.h:32
AMQP simple endpoint.
Definition: rmqt_simpleendpoint.h:31