File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
includes/fundamentals/code-snippets Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ that returns new credentials as shown in the following example:
489
489
:dedent:
490
490
:start-after: start refreshCredentials
491
491
:end-before: end refreshCredentials
492
- :emphasize-lines: 4-5,9
492
+ :emphasize-lines: 4-5,8- 9
493
493
494
494
.. note::
495
495
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ private static void refreshCredentials() {
108
108
return new AwsCredential ("<awsKeyId>" , "<awsSecretKey>" , "<awsSessionToken>" );
109
109
};
110
110
111
- MongoCredential credential = MongoCredential .createAwsCredential ("<awsKeyId>" , "<awsSecretKey>" . toCharArray () )
111
+ MongoCredential credential = MongoCredential .createAwsCredential (null , null )
112
112
.withMechanismProperty (MongoCredential .AWS_CREDENTIAL_PROVIDER_KEY , awsFreshCredentialSupplier );
113
113
MongoClient mongoClient = MongoClients .create (
114
114
MongoClientSettings .builder ()
You can’t perform that action at this time.
0 commit comments