com.datastax.driver.core.sasl
Class DseAuthProvider

java.lang.Object
  extended by 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();
 


Field Summary
 
Fields inherited from interface com.datastax.driver.core.AuthProvider
NONE
 
Constructor Summary
DseAuthProvider()
           
 
Method Summary
 Authenticator newAuthenticator(InetAddress host)
          The Authenticator to use when connecting to host
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DseAuthProvider

public DseAuthProvider()
Method Detail

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.