org.apache.cassandra.auth
Class SimpleAuthenticator
java.lang.Object
org.apache.cassandra.auth.SimpleAuthenticator
- All Implemented Interfaces:
- IAuthenticator
public class SimpleAuthenticator
- extends java.lang.Object
- implements IAuthenticator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SimpleAuthenticator
public SimpleAuthenticator()
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