com.datastax.driver.core
Interface AuthProvider

All Known Implementing Classes:
PlainTextAuthProvider

public interface AuthProvider

Provides Authenticator instances for use when connecting to Cassandra nodes. See PlainTextAuthProvider for an implementation which uses SASL PLAIN mechanism to authenticate using username/password strings


Field Summary
static AuthProvider NONE
          A provider that provides no authentication capability.
 
Method Summary
 Authenticator newAuthenticator(InetAddress host)
          The Authenticator to use when connecting to host
 

Field Detail

NONE

static final AuthProvider NONE
A provider that provides no authentication capability.

This is only useful as a placeholder when no authentication is to be used.

Method Detail

newAuthenticator

Authenticator newAuthenticator(InetAddress host)
                               throws AuthenticationException
The Authenticator to use when connecting to host

Parameters:
host - the Cassandra host to connect to.
Returns:
The authentication implementation to use.
Throws:
AuthenticationException


Copyright © 2013. All rights reserved.