org.apache.cassandra.auth
Interface IAuthenticator

All Known Implementing Classes:
AllowAllAuthenticator, SimpleAuthenticator

public interface IAuthenticator


Method Summary
 AuthenticatedUser authenticate(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials)
           
 AuthenticatedUser defaultUser()
           
 void validateConfiguration()
           
 

Method Detail

defaultUser

AuthenticatedUser defaultUser()
Returns:
The user that a connection is initialized with, or 'null' if a user must call login().

authenticate

AuthenticatedUser authenticate(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials)
                               throws org.apache.cassandra.thrift.AuthenticationException
Parameters:
credentials - An implementation specific collection of identifying information.
Returns:
A successfully authenticated user: should throw AuthenticationException rather than ever returning null.
Throws:
org.apache.cassandra.thrift.AuthenticationException

validateConfiguration

void validateConfiguration()
                           throws ConfigurationException
Throws:
ConfigurationException


Copyright © 2011 The Apache Software Foundation