com.datastax.driver.core
Interface AuthInfoProvider

All Known Implementing Classes:
SimpleAuthInfoProvider

public interface AuthInfoProvider

Authentication information provider to connect to Cassandra nodes.

The authentication information themselves are just a key-value pairs. Which exact key-value pairs are required depends on the authenticator set for the Cassandra nodes.


Field Summary
static AuthInfoProvider NONE
          A provider that provides no authentication information.
 
Method Summary
 Map<String,String> getAuthInfo(InetAddress host)
          The authentication information to use to connect to host.
 

Field Detail

NONE

static final AuthInfoProvider NONE
A provider that provides no authentication information.

This is only useful for when no authentication is to be used.

Method Detail

getAuthInfo

Map<String,String> getAuthInfo(InetAddress host)
The authentication information to use to connect to host. Please note that if authentication is required, this method will be called to initialize each new connection created by the driver. It is thus a good idea to make sure this method returns relatively quickly.

Parameters:
host - the Cassandra host for which authentication information are requested.
Returns:
The authentication information to use.


Copyright © 2013. All Rights Reserved.