MongoDB C++ Driver 4.4.0
Loading...
Searching...
No Matches
data_key_options.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
17#include <mongocxx/v1/data_key_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
25
27
29
30#include <cstdint>
31#include <string>
32#include <vector>
33
34namespace mongocxx {
35namespace v1 {
36
49 private:
50 class impl;
51 void* _impl;
52
53 public:
60
68
76
81
86
94
99
103 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) master_key() const;
104
109
113 MONGOCXX_ABI_EXPORT_CDECL(std::vector<std::string>) key_alt_names() const;
114
118 using key_material_type = std::vector<std::uint8_t>;
119
124
129
130 class internal;
131};
132
133} // namespace v1
134} // namespace mongocxx
135
136#include <mongocxx/v1/detail/postlude.hpp>
137
data_key_options & key_alt_names(std::vector< std::string > v)
Set the "keyAltNames" field.
data_key_options & key_material(key_material_type v)
Set the "keyMaterial" field.
~data_key_options()
Destroy this object.
data_key_options & master_key(bsoncxx::v1::document::value v)
Set the "masterKey" field.
data_key_options(data_key_options &&other) noexcept
Move constructor.
std::vector< std::uint8_t > key_material_type
Binary data with a length of exactly 96 bytes.
Definition data_key_options.hpp:118
Declares mongocxx::v1::data_key_options.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Provides std::optional-related polyfills for library API usage.