public final class NativeAuthenticationHelper
extends java.lang.Object
This class should not be considered a part of the public API.
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createAuthenticationHash(java.lang.String userName,
char[] password)
Creates a hash of the given user name and password, which is the hex encoding of
MD5( <userName> + ":mongo:" + <password> ) . |
static BsonDocument |
getAuthCommand(java.lang.String userName,
char[] password,
java.lang.String nonce) |
static BsonDocument |
getAuthCommand(java.lang.String userName,
java.lang.String authHash,
java.lang.String nonce) |
static BsonDocument |
getNonceCommand() |
public static java.lang.String createAuthenticationHash(java.lang.String userName, char[] password)
MD5( <userName> + ":mongo:" + <password> )
.userName
- the user namepassword
- the passwordpublic static BsonDocument getAuthCommand(java.lang.String userName, char[] password, java.lang.String nonce)
public static BsonDocument getAuthCommand(java.lang.String userName, java.lang.String authHash, java.lang.String nonce)
public static BsonDocument getNonceCommand()
Copyright © 2010 - 2020 Adobe. All Rights Reserved