mongoc_client_encryption_opts_set_kms_providers

mongoc_client_encryption_opts_set_kms_providers()

Synopsis

void
mongoc_client_encryption_opts_set_kms_providers (
   mongoc_client_encryption_opts_t *opts, const bson_t *kms_providers);

Parameters

kms_providers is a BSON document containing configuration for each KMS provider. Currently aws or local are supported. At least one must be specified.

The format for "aws" is as follows:

aws: {
   accessKeyId: <string>,
   secretAccessKey: <string>
}

The format for "local" is as follows:

local: {
   key: <96 byte BSON binary of subtype 0> // The master key used to encrypt/decrypt data keys.
}

See Also

Author

MongoDB, Inc

Info

Apr 09, 2021 1.17.5 libmongoc