Skip to content

Commit

Permalink
OGM-791 Add documentation for the new authentication mechanisms
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbernard committed May 7, 2015
1 parent 9bd81a7 commit 1c8bd7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -80,8 +80,11 @@ This configuration is expressed in milliseconds.
The default value is +5000+.
hibernate.ogm.mongodb.authentication_mechanism::
Define the authentication mechanism to use. Possible values are:

* +BEST+: Handshakes with the server to find the best authentication mechanism.
* +SCRAM_SHA_1+: The SCRAM SHA 1 Challenge Response mechanism as described in this link:http://tools.ietf.org/html/rfc5802[RFC].
* +MONGODB_CR+: The MongoDB Challenge Response mechanism (deprecated since MongoDB 3)
* +GSSAPI+: The GSSAPI mechanism. See the http://tools.ietf.org/html/rfc4752[RFC]
* +MONGODB_CR+: The MongoDB Challenge Response mechanism. This is the default value.
* +MONGODB_X509+: The MongoDB X.509
* +PLAIN+: The PLAIN mechanism. See the http://www.ietf.org/rfc/rfc4616.txt[RFC]
hibernate.ogm.datastore.document.association_storage::
Expand Down
Expand Up @@ -70,7 +70,9 @@ public final class MongoDBProperties implements DocumentStoreProperties {

/**
* Specify the authentication mechanism that MongoDB will use to authenticate the connection.
* Possible values include: MONGODB-CR (default), MONGODB-X509, PLAIN, GSSAPI
* Possible values are listed in {@link org.hibernate.ogm.datastore.mongodb.options.AuthenticationMechanismType}.
*
* {@code BEST} (default) will handshake with the server to find the best authentication mechanism.
*
* @see com.mongodb.MongoCredential
*/
Expand Down

0 comments on commit 1c8bd7d

Please sign in to comment.