File tree 1 file changed +6
-5
lines changed
source/security-and-authentication
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ properties:
92
92
class name of the implementation class
93
93
94
94
Depending on the design of your implementation class, you might also
95
- need to set the ``mongodbaws.auth.mechanism.roleArn`` property, which
95
+ set the ``mongodbaws.auth.mechanism.roleArn`` property, which
96
96
provides the Amazon Resource Name (ARN).
97
97
98
98
Example
@@ -114,14 +114,15 @@ provider:
114
114
mongodbaws.auth.mechanism.roleArn=arn:aws:iam::<account ID>:role/<role name>
115
115
116
116
In this example, the ``sample.AwsAssumeRoleCredentialProvider``
117
- implementation class must be available on the classpath. Your
118
- authentication provider reads the ARN you specify.
117
+ implementation class must be available on the classpath. The
118
+ authentication provider class reads the ARN you specify in the
119
+ ``roleArn`` property.
119
120
120
121
The ``AwsAssumeRoleCredentialProvider`` class defines ``init()`` and
121
122
``validate()`` methods that are called when the connector initializes.
122
123
It returns an object of type ``com.mongodb.MongoCredential`` that is
123
- used by the ``MongoClient``. The following code provides a sample
124
- implementation of a custom authentication provider:
124
+ used by the ``MongoClient``. The following code defines the custom
125
+ authentication provider:
125
126
126
127
.. code-block:: java
127
128
You can’t perform that action at this time.
0 commit comments