@ThreadSafe public class DsePlainTextAuthProvider extends Object implements AuthProvider
To activate this provider, an auth-provider
section must be included in the driver
configuration, for example:
dse-java-driver { auth-provider { class = com.datastax.dse.driver.internal.core.auth.DsePlainTextAuthProvider username = user0 password = mypassword authorization-id = user1 } }See the
dse-reference.conf
file included with the driver for more information.Constructor and Description |
---|
DsePlainTextAuthProvider(DriverContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Authenticator |
newAuthenticator(EndPoint endPoint,
String serverAuthenticator) |
void |
onMissingChallenge(EndPoint endPoint) |
public DsePlainTextAuthProvider(DriverContext context)
@NonNull public Authenticator newAuthenticator(@NonNull EndPoint endPoint, @NonNull String serverAuthenticator) throws AuthenticationException
newAuthenticator
in interface AuthProvider
AuthenticationException
public void onMissingChallenge(@NonNull EndPoint endPoint)
onMissingChallenge
in interface AuthProvider
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2017–2019. All rights reserved.