@@ -25,11 +25,6 @@ each **authentication mechanism** available in the {+driver-long+}.
25
25
Authentication is the process by which the driver proves its identity to the
26
26
server to ensure security.
27
27
28
- To learn more about the connection string formats and authentication options,
29
- see the :manual:`Connection String Formats
30
- </reference/connection-string/#connection-string-formats>` section
31
- of the Connection Strings guide in the Server manual.
32
-
33
28
.. note:: Enterprise Authentication Mechanisms
34
29
35
30
This page describes the authentication mechanisms available in MongoDB
@@ -156,11 +151,11 @@ mechanism:
156
151
157
152
To specify the default authentication mechanism by using the
158
153
``MongoCredential`` class, use the
159
- `createScramSha256Credential() <{+api+}/apidocs/mongodb-driver-core /com/mongodb/MongoCredential.html#createScramSha256Credential(java.lang.String,java.lang.String,char[])>`__
154
+ `createScramSha256Credential() <{+core- api+}/com/mongodb/MongoCredential.html#createScramSha256Credential(java.lang.String,java.lang.String,char[])>`__
160
155
method. Also, enable TLS by calling the
161
- `applyToSslSettings() <{+api+}/apidocs/mongodb-driver-core /com/mongodb/MongoClientSettings.Builder.html#applyToSslSettings(com.mongodb.Block)>`__
156
+ `applyToSslSettings() <{+core- api+}/com/mongodb/MongoClientSettings.Builder.html#applyToSslSettings(com.mongodb.Block)>`__
162
157
method and setting the ``enabled`` property to ``true`` in the
163
- `SslSettings.Builder <{+api+}/apidocs/mongodb-driver-core /com/mongodb/connection/SslSettings.Builder.html>`__
158
+ `SslSettings.Builder <{+core- api+}/com/mongodb/connection/SslSettings.Builder.html>`__
164
159
block. Your code to instantiate a ``MongoClient`` should resemble the following:
165
160
166
161
.. literalinclude:: /includes/security/authentication.kt
@@ -219,11 +214,11 @@ mechanism:
219
214
220
215
To specify the default authentication mechanism by using the
221
216
``MongoCredential`` class, use the
222
- `createScramSha1Credential() <{+api+}/apidocs/mongodb-driver-core /com/mongodb/MongoCredential.html#createScramSha1Credential(java.lang.String,java.lang.String,char[])>`__
217
+ `createScramSha1Credential() <{+core- api+}/com/mongodb/MongoCredential.html#createScramSha1Credential(java.lang.String,java.lang.String,char[])>`__
223
218
method. Also, enable TLS by calling the
224
- `applyToSslSettings() <{+api+}/apidocs/mongodb-driver-core/ com/mongodb/MongoClientSettings.Builder.html#applyToSslSettings(com.mongodb.Block)>`__
219
+ `applyToSslSettings() <{+api+}/com/mongodb/MongoClientSettings.Builder.html#applyToSslSettings(com.mongodb.Block)>`__
225
220
method and setting the ``enabled`` property to ``true`` in the
226
- `SslSettings.Builder <{+api+}/apidocs/mongodb-driver-core/ com/mongodb/connection/SslSettings.Builder.html>`__
221
+ `SslSettings.Builder <{+api+}/com/mongodb/connection/SslSettings.Builder.html>`__
227
222
block. Your code to instantiate a ``MongoClient`` should resemble the following:
228
223
229
224
.. literalinclude:: /includes/security/authentication.kt
@@ -279,11 +274,11 @@ mechanism:
279
274
280
275
To specify the ``X.509`` authentication mechanism by using the
281
276
``MongoCredential`` class, use the
282
- `createMongoX509Credential() <{+api+}/apidocs/mongodb-driver-core/ com/mongodb/MongoCredential.html#createMongoX509Credential(java.lang.String)>`__
277
+ `createMongoX509Credential() <{+api+}/com/mongodb/MongoCredential.html#createMongoX509Credential(java.lang.String)>`__
283
278
method. Also, enable TLS by calling the
284
- `applyToSslSettings() <{+api+}/apidocs/mongodb-driver-core/ com/mongodb/MongoClientSettings.Builder.html#applyToSslSettings(com.mongodb.Block)>`__
279
+ `applyToSslSettings() <{+api+}/com/mongodb/MongoClientSettings.Builder.html#applyToSslSettings(com.mongodb.Block)>`__
285
280
method and setting the ``enabled`` property to ``true`` in the
286
- `SslSettings.Builder <{+api+}/apidocs/mongodb-driver-core/ com/mongodb/connection/SslSettings.Builder.html>`__
281
+ `SslSettings.Builder <{+api+}/com/mongodb/connection/SslSettings.Builder.html>`__
287
282
block. Your code to instantiate a ``MongoClient`` should resemble the following:
288
283
289
284
.. literalinclude:: /includes/security/authentication.kt
0 commit comments