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) |
getCredential
NativeAuthenticator(MongoCredential credential)
public void authenticate(InternalConnection connection, ConnectionDescription connectionDescription)
authenticate
in class Authenticator
void authenticateAsync(InternalConnection connection, ConnectionDescription connectionDescription, SingleResultCallback<java.lang.Void> callback)
authenticateAsync
in class Authenticator
private java.lang.Throwable translateThrowable(java.lang.Throwable t)