public class DsePlainTextAuthProvider extends Object implements AuthProvider
Cluster cluster = Cluster.builder() .addContactPoint(hostname) .withAuthProvider(new DsePlainTextAuthProvider("username", "password")) .build();
NONE
Constructor and Description |
---|
DsePlainTextAuthProvider(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
Authenticator |
newAuthenticator(InetSocketAddress host,
String authenticator)
The
Authenticator to use when connecting to host |
public Authenticator newAuthenticator(InetSocketAddress host, String authenticator) throws AuthenticationException
AuthProvider
Authenticator
to use when connecting to host
newAuthenticator
in interface AuthProvider
host
- the Cassandra host to connect to.authenticator
- the configured authenticator on the host.AuthenticationException