Class NativeAuthenticationHelper
java.lang.Object
com.mongodb.internal.authentication.NativeAuthenticationHelper
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Utility class for working with MongoDB native authentication.
This class should not be considered a part of the public API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createAuthenticationHash
(String userName, char[] password) Deprecated.Creates a hash of the given user name and password, which is the hex encoding ofMD5( <userName> + ":mongo:" + <password> )
.static BsonDocument
getAuthCommand
(String userName, char[] password, String nonce) Deprecated.static BsonDocument
getAuthCommand
(String userName, String authHash, String nonce) Deprecated.static BsonDocument
Deprecated.
-
Method Details
-
createAuthenticationHash
Deprecated.Creates a hash of the given user name and password, which is the hex encoding ofMD5( <userName> + ":mongo:" + <password> )
.- Parameters:
userName
- the user namepassword
- the password- Returns:
- the hash as a string
-
getAuthCommand
Deprecated. -
getAuthCommand
Deprecated. -
getNonceCommand
Deprecated.
-