Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions source/security/encrypt-fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,4 @@
.. tab:: Gradle
:tabid: gradle-dependency

.. include:: /includes/fundamentals/code-snippets/crypt-gradle-versioned.rst

Connection Settings
-------------------

You can apply encryption settings when creating a ``MongoClient`` instance by
passing an `AutoEncryptionSettings
<{+core-api+}/AutoEncryptionSettings.html>`__
object to the `autoEncryptionSettings()
<{+core-api+}/MongoClientSettings.Builder.html#autoEncryptionSettings(com.mongodb.AutoEncryptionSettings)>`__
method.

.. TODO: Add example

.. note::

If you omit ``keyVaultClient`` or set ``bypassAutomaticEncryption`` to false
in your ``AutoEncryptionSettings``, the driver creates a separate, internal
``MongoClient``. The internal ``MongoClient`` configuration differs from the
parent ``MongoClient`` by setting the ``minPoolSize`` to 0 and omitting the ``AutoEncryptionSettings``.
.. include:: /includes/fundamentals/code-snippets/crypt-gradle-versioned.rst
Loading