Class NativeAuthenticationHelper
- java.lang.Object
-
- com.mongodb.internal.authentication.NativeAuthenticationHelper
-
@Deprecated(since="2021-05-27") public final class NativeAuthenticationHelper extends java.lang.Object
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
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
createAuthenticationHash(java.lang.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(java.lang.String userName, char[] password, java.lang.String nonce)
Deprecated.static BsonDocument
getAuthCommand(java.lang.String userName, java.lang.String authHash, java.lang.String nonce)
Deprecated.static BsonDocument
getNonceCommand()
Deprecated.
-
-
-
Method Detail
-
createAuthenticationHash
public static java.lang.String createAuthenticationHash(java.lang.String userName, char[] password)
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
public static BsonDocument getAuthCommand(java.lang.String userName, char[] password, java.lang.String nonce)
Deprecated.
-
getAuthCommand
public static BsonDocument getAuthCommand(java.lang.String userName, java.lang.String authHash, java.lang.String nonce)
Deprecated.
-
getNonceCommand
public static BsonDocument getNonceCommand()
Deprecated.
-
-