public class DseAuthProvider extends Object implements AuthProvider
KerberosAuthenticator
for how
to configure client side Kerberos options.
To connect to clusters using internal
authentication, use the standard method for
setting credentials. eg:
Cluster cluster = Cluster.builder() .addContactPoint(hostname) .withCredentials("username", "password") .build();
NONE
Constructor and Description |
---|
DseAuthProvider() |
Modifier and Type | Method and Description |
---|---|
Authenticator |
newAuthenticator(InetAddress host)
The
Authenticator to use when connecting to host |
public Authenticator newAuthenticator(InetAddress host) throws AuthenticationException
AuthProvider
Authenticator
to use when connecting to host
newAuthenticator
in interface AuthProvider
host
- the Cassandra host to connect to.AuthenticationException
Copyright © 2014. All Rights Reserved.