MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
rewrap_many_datakey.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
19
22#include <bsoncxx/types.hpp>
24
25#include <mongocxx/stdx.hpp>
26
28
29namespace mongocxx {
30namespace v_noabi {
31namespace options {
32
37 public:
55 provider(bsoncxx::v_noabi::string::view_or_value provider);
56
70 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v_noabi::string::view_or_value) provider() const;
71
88 master_key(bsoncxx::v_noabi::document::view_or_value master_key);
89
103 MONGOCXX_ABI_EXPORT_CDECL(const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&)
104 master_key() const;
105
106 private:
107 friend ::mongocxx::v_noabi::client_encryption;
108
109 bsoncxx::v_noabi::string::view_or_value _provider;
110 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _master_key;
111};
112
113} // namespace options
114} // namespace v_noabi
115} // namespace mongocxx
116
117#include <mongocxx/config/postlude.hpp>
118
Class representing options for the object managing explicit client-side encryption.
Definition client_encryption.hpp:37
Class representing options for a rewrap many datakey operation.
Definition rewrap_many_datakey.hpp:36
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & master_key() const
Get the masterKey option.
bsoncxx::v_noabi::string::view_or_value provider() const
Get the KMS provider.
Declares mongocxx::v_noabi::client_encryption.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::options::rewrap_many_datakey.
Redeclares bsoncxx::v_noabi::stdx in mongocxx::v_noabi::stdx for internal use.
Provides bsoncxx::v_noabi::string::view_or_value.
Provides bsoncxx::v_noabi::types::bson_value::view_or_value.
Provides entities used to represent BSON types.