Scroll to navigation

MONGOC_CLIENT_ENCRYPTION_OPTS_SET_KMS_PROVIDERS(3) libmongoc MONGOC_CLIENT_ENCRYPTION_OPTS_SET_KMS_PROVIDERS(3)

NAME

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

  • opts: The mongoc_client_encryption_opts_t
  • kms_providers: A bson_t containing configuration for an external Key Management Service (KMS).

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

  • mongoc_client_encryption_new()
  • The guide for Using Client-Side Field Level Encryption

AUTHOR

MongoDB, Inc

COPYRIGHT

2017-present, MongoDB, Inc

June 4, 2021 1.17.6