RMQ - RabbitMQ C++ Library
rmqt_mutualsecurityparameters.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_MUTUALSECURITYPARAMETERS
17#define INCLUDED_RMQT_MUTUALSECURITYPARAMETERS
18
19#include <rmqt_securityparameters.h>
20
21#include <bsl_string.h>
22#include <bsls_keyword.h>
23
24namespace BloombergLP {
25namespace rmqt {
26
29
31 private:
32 bsl::string d_certificateAuthorityPath;
33 bsl::string d_clientCertificatePath;
34 bsl::string d_clientKeyPath;
35
36 public:
37 MutualSecurityParameters(const bsl::string& caPath,
38 const bsl::string& clientCertPath,
39 const bsl::string& clientKeyPath);
40
41 SecurityParameters::Verification verification() const BSLS_KEYWORD_OVERRIDE;
42
43 SecurityParameters::Method method() const BSLS_KEYWORD_OVERRIDE;
44
45 bsl::string clientCertificatePath() const BSLS_KEYWORD_OVERRIDE;
46
47 bsl::string clientKeyPath() const BSLS_KEYWORD_OVERRIDE;
48};
49} // namespace rmqt
50} // namespace BloombergLP
51
52#endif
Mutual TLS Parameters.
Definition: rmqt_mutualsecurityparameters.h:30
Connection Security (TLS) Parameters.
Definition: rmqt_securityparameters.h:28