File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
source/includes/fundamentals/code-snippets Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,6 @@ private static void mongoCredential() {
4747 // end mongoCredential
4848 }
4949
50- private static void mechOnlyMongoCredential () {
51- // start mechOnlyMongoCredential
52- MongoCredential credential = MongoCredential .createAwsCredential (null , null );
53-
54- MongoClient mongoClient = MongoClients .create (
55- MongoClientSettings .builder ()
56- .applyToClusterSettings (builder ->
57- builder .hosts (Arrays .asList (new ServerAddress ("<hostname>" ))))
58- .credential (credential )
59- .build ());
60- // end mechOnlyMongoCredential
61- }
62-
6350 private static void mongoCredentialSessionTokenConnString () {
6451 // start mongoCredentialSessionTokenConnString
6552 MongoCredential credential = MongoCredential .createAwsCredential ("<awsKeyId>" , "<awsSecretKey>" .toCharArray ());
You can’t perform that action at this time.
0 commit comments