com.datastax.driver.core.sasl
Class DseAuthProvider
java.lang.Object
com.datastax.driver.core.sasl.DseAuthProvider
- All Implemented Interfaces:
- AuthProvider
public class DseAuthProvider
- extends Object
- implements AuthProvider
AuthProvider which supplies authenticator instances
for clients to connect to DSE clusters secured with
Kerberos. See 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();
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DseAuthProvider
public DseAuthProvider()
newAuthenticator
public Authenticator newAuthenticator(InetAddress host)
throws AuthenticationException
- Description copied from interface:
AuthProvider
- The
Authenticator
to use when connecting to host
- Specified by:
newAuthenticator
in interface AuthProvider
- Parameters:
host
- the Cassandra host to connect to.
- Returns:
- The authentication implmentation to use.
- Throws:
AuthenticationException
Copyright © 2013. All Rights Reserved.