@ThreadSafe public class DsePlainTextAuthProvider extends Object implements com.datastax.oss.driver.api.core.auth.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(com.datastax.oss.driver.api.core.context.DriverContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.datastax.oss.driver.api.core.auth.Authenticator |
newAuthenticator(SocketAddress host,
String serverAuthenticator) |
void |
onMissingChallenge(SocketAddress host) |
public DsePlainTextAuthProvider(com.datastax.oss.driver.api.core.context.DriverContext context)
@NonNull public com.datastax.oss.driver.api.core.auth.Authenticator newAuthenticator(@NonNull SocketAddress host, @NonNull String serverAuthenticator) throws com.datastax.oss.driver.api.core.auth.AuthenticationException
newAuthenticator
in interface com.datastax.oss.driver.api.core.auth.AuthProvider
com.datastax.oss.driver.api.core.auth.AuthenticationException
public void onMissingChallenge(@NonNull SocketAddress host)
onMissingChallenge
in interface com.datastax.oss.driver.api.core.auth.AuthProvider
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2017–2019. All rights reserved.