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
AuthProviderAuthenticator to use when connecting to hostnewAuthenticator in interface AuthProviderhost - the Cassandra host to connect to.authenticator - the configured authenticator on the host.AuthenticationException