OptionalcredentialOptions for user provided custom credential providers.
OptionalkeySets the expiration time for the DEK in the cache in milliseconds. Defaults to 60000. 0 means no timeout.
OptionalkeyA MongoClient used to fetch keys from a key vault. Defaults to client.
The namespace of the key vault, used to store encryption keys
OptionalkmsA callback that establishes the socket used to connect to a KMS host, e.g. to route KMS
requests through an HTTP proxy via the HTTP CONNECT method. Mutually exclusive with proxyOptions.
See KMSConnectCallback for a usage example.
OptionalkmsOptions for specific KMS providers to use
OptionalproxyOptions for specifying a Socks5 proxy to use for connecting to the KMS.
OptionaltimeoutMSThe timeout setting to be used for all the operations on ClientEncryption.
OptionaltlsTLS options for kms providers to use.
Additional settings to provide when creating a new
ClientEncryptioninstance.