class NativeAuthenticator extends Authenticator
| Constructor and Description |
|---|
NativeAuthenticator(MongoCredential credential) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(InternalConnection connection,
ConnectionDescription connectionDescription) |
(package private) void |
authenticateAsync(InternalConnection connection,
ConnectionDescription connectionDescription,
SingleResultCallback<java.lang.Void> callback) |
private java.lang.Throwable |
translateThrowable(java.lang.Throwable t) |
getCredentialpublic NativeAuthenticator(MongoCredential credential)
public void authenticate(InternalConnection connection, ConnectionDescription connectionDescription)
authenticate in class Authenticatorvoid authenticateAsync(InternalConnection connection, ConnectionDescription connectionDescription, SingleResultCallback<java.lang.Void> callback)
authenticateAsync in class Authenticatorprivate java.lang.Throwable translateThrowable(java.lang.Throwable t)