com.netflix.astyanax.connectionpool.impl
Class SimpleAuthenticationCredentials

java.lang.Object
  extended by com.netflix.astyanax.connectionpool.impl.SimpleAuthenticationCredentials
All Implemented Interfaces:
AuthenticationCredentials

public class SimpleAuthenticationCredentials
extends java.lang.Object
implements AuthenticationCredentials


Constructor Summary
SimpleAuthenticationCredentials(java.lang.String username, java.lang.String password)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
          Retrieve a single attribute by name
 java.lang.String[] getAttributeNames()
           
 java.lang.String getPassword()
           
 java.lang.String getUsername()
           
 SimpleAuthenticationCredentials removeAttribute(java.lang.String name)
           
 SimpleAuthenticationCredentials setAttribute(java.lang.String name, java.lang.Object value)
           
 SimpleAuthenticationCredentials setPassword(java.lang.String password)
           
 SimpleAuthenticationCredentials setUsername(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAuthenticationCredentials

public SimpleAuthenticationCredentials(java.lang.String username,
                                       java.lang.String password)
Method Detail

setUsername

public SimpleAuthenticationCredentials setUsername(java.lang.String username)

setPassword

public SimpleAuthenticationCredentials setPassword(java.lang.String password)

setAttribute

public SimpleAuthenticationCredentials setAttribute(java.lang.String name,
                                                    java.lang.Object value)

removeAttribute

public SimpleAuthenticationCredentials removeAttribute(java.lang.String name)

getUsername

public java.lang.String getUsername()
Specified by:
getUsername in interface AuthenticationCredentials
Returns:
The username

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface AuthenticationCredentials
Returns:
The password

getAttributeNames

public java.lang.String[] getAttributeNames()
Specified by:
getAttributeNames in interface AuthenticationCredentials
Returns:
Array of all custom attribute names

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Description copied from interface: AuthenticationCredentials
Retrieve a single attribute by name

Specified by:
getAttribute in interface AuthenticationCredentials
Parameters:
name - Attribute name