.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_CLIENT_ENCRYPTION_OPTS_SET_KMS_PROVIDERS" "3" "Oct 20, 2022" "1.23.1" "libmongoc" .SH NAME mongoc_client_encryption_opts_set_kms_providers \- mongoc_client_encryption_opts_set_kms_providers() .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C void mongoc_client_encryption_opts_set_kms_providers ( mongoc_client_encryption_opts_t *opts, const bson_t *kms_providers); .ft P .fi .UNINDENT .UNINDENT .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBopts\fP: The \fI\%mongoc_client_encryption_opts_t\fP .IP \(bu 2 \fBkms_providers\fP: A \fI\%bson_t\fP containing configuration for an external Key Management Service (KMS). .UNINDENT .sp \fBkms_providers\fP is a BSON document containing configuration for each KMS provider. Currently \fBaws\fP, \fBlocal\fP, \fBazure\fP, \fBgcp\fP, and \fBkmip\fP are supported. At least one must be specified. .sp The format for "aws" is as follows: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C aws: { accessKeyId: String, secretAccessKey: String } .ft P .fi .UNINDENT .UNINDENT .sp The format for "local" is as follows: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C local: { key: <96 byte BSON binary of subtype 0> or String /* The master key used to encrypt/decrypt data keys. May be passed as a base64 encoded string. */ } .ft P .fi .UNINDENT .UNINDENT .sp The format for "azure" is as follows: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C azure: { tenantId: String, clientId: String, clientSecret: String, identityPlatformEndpoint: Optional /* Defaults to login.microsoftonline.com */ } .ft P .fi .UNINDENT .UNINDENT .sp The format for "gcp" is as follows: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C gcp: { email: String, privateKey: byte[] or String, /* May be passed as a base64 encoded string. */ endpoint: Optional /* Defaults to oauth2.googleapis.com */ } .ft P .fi .UNINDENT .UNINDENT .sp The format for "kmip" is as follows: .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C kmip: { endpoint: String } .ft P .fi .UNINDENT .UNINDENT .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%mongoc_client_encryption_new()\fP .fi .sp .nf The guide for \fI\%Using Client\-Side Field Level Encryption\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .