org.apache.cassandra.auth
Class SimpleAuthenticator

java.lang.Object
  extended by org.apache.cassandra.auth.SimpleAuthenticator
All Implemented Interfaces:
IAuthenticator

public class SimpleAuthenticator
extends java.lang.Object
implements IAuthenticator


Nested Class Summary
static class SimpleAuthenticator.PasswordMode
           
 
Field Summary
static java.lang.String PASSWD_FILENAME_PROPERTY
           
static java.lang.String PASSWORD_KEY
           
static java.lang.String PMODE_PROPERTY
           
static java.lang.String USERNAME_KEY
           
 
Constructor Summary
SimpleAuthenticator()
           
 
Method Summary
 AuthenticatedUser authenticate(java.util.Map<? extends java.lang.CharSequence,? extends java.lang.CharSequence> credentials)
           
 AuthenticatedUser defaultUser()
           
 void validateConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASSWD_FILENAME_PROPERTY

public static final java.lang.String PASSWD_FILENAME_PROPERTY
See Also:
Constant Field Values

PMODE_PROPERTY

public static final java.lang.String PMODE_PROPERTY
See Also:
Constant Field Values

USERNAME_KEY

public static final java.lang.String USERNAME_KEY
See Also:
Constant Field Values

PASSWORD_KEY

public static final java.lang.String PASSWORD_KEY
See Also:
Constant Field Values
Constructor Detail

SimpleAuthenticator

public SimpleAuthenticator()
Method Detail

defaultUser

public AuthenticatedUser defaultUser()
Specified by:
defaultUser in interface IAuthenticator
Returns:
The user that a connection is initialized with, or 'null' if a user must call login().

authenticate

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

validateConfiguration

public void validateConfiguration()
                           throws ConfigurationException
Specified by:
validateConfiguration in interface IAuthenticator
Throws:
ConfigurationException


Copyright © 2011 The Apache Software Foundation