MongoDB C++ Driver mongocxx-3.11.0
|
#include <mongocxx/v_noabi/mongocxx/options/rewrap_many_datakey.hpp>
Class representing options for a rewrap many datakey operation.
Public Member Functions | |
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & | master_key () const |
Get the masterKey option. | |
rewrap_many_datakey & | master_key (bsoncxx::v_noabi::document::view_or_value master_key) |
Set the masterKey option. | |
bsoncxx::v_noabi::string::view_or_value | provider () const |
Get the KMS provider. | |
rewrap_many_datakey & | provider (bsoncxx::v_noabi::string::view_or_value provider) |
Set the optional KMS provider use to encrypt the data keys. Do not set to use the current KMS provider(s). | |
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & mongocxx::v_noabi::options::rewrap_many_datakey::master_key | ( | ) | const |
Get the masterKey option.
The masterKey document MUST have the fields corresponding to the given provider as specified in masterKey. masterKey MUST NOT be given if it is not applicable for the given provider.
rewrap_many_datakey & mongocxx::v_noabi::options::rewrap_many_datakey::master_key | ( | bsoncxx::v_noabi::document::view_or_value | master_key | ) |
Set the masterKey option.
The masterKey document MUST have the fields corresponding to the given provider as specified in masterKey. masterKey MUST NOT be given if it is not applicable for the given provider.
master_key | A document of the master key. |
bsoncxx::v_noabi::string::view_or_value mongocxx::v_noabi::options::rewrap_many_datakey::provider | ( | ) | const |
Get the KMS provider.
A KMS provider (AWS KMS, Azure Key Vault, GCP KMS, the local provider, or KMIP) is used to decrypt data keys after fetching from the MongoDB Key Vault, and encrypt newly created data keys.
rewrap_many_datakey & mongocxx::v_noabi::options::rewrap_many_datakey::provider | ( | bsoncxx::v_noabi::string::view_or_value | provider | ) |
Set the optional KMS provider use to encrypt the data keys. Do not set to use the current KMS provider(s).
A KMS provider (AWS KMS, Azure Key Vault, GCP KMS, the local provider, or KMIP) is used to decrypt data keys after fetching from the MongoDB Key Vault, and encrypt newly created data keys.
provider | String name of the provider. |