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 Object
implements AuthenticationCredentials


Constructor Summary
SimpleAuthenticationCredentials(String username, String password)
           
 
Method Summary
 Object getAttribute(String name)
          Retrieve a single attribute by name
 String[] getAttributeNames()
          Array of all custom attribute names
 String getPassword()
          The password
 String getUsername()
          The username
 SimpleAuthenticationCredentials removeAttribute(String name)
           
 SimpleAuthenticationCredentials setAttribute(String name, Object value)
           
 SimpleAuthenticationCredentials setPassword(String password)
           
 SimpleAuthenticationCredentials setUsername(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(String username,
                                       String password)
Method Detail

setUsername

public SimpleAuthenticationCredentials setUsername(String username)

setPassword

public SimpleAuthenticationCredentials setPassword(String password)

setAttribute

public SimpleAuthenticationCredentials setAttribute(String name,
                                                    Object value)

removeAttribute

public SimpleAuthenticationCredentials removeAttribute(String name)

getUsername

public String getUsername()
Description copied from interface: AuthenticationCredentials
The username

Specified by:
getUsername in interface AuthenticationCredentials
Returns:

getPassword

public String getPassword()
Description copied from interface: AuthenticationCredentials
The password

Specified by:
getPassword in interface AuthenticationCredentials
Returns:

getAttributeNames

public String[] getAttributeNames()
Description copied from interface: AuthenticationCredentials
Array of all custom attribute names

Specified by:
getAttributeNames in interface AuthenticationCredentials
Returns:

getAttribute

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

Specified by:
getAttribute in interface AuthenticationCredentials
Returns:


Copyright © 2012. All Rights Reserved.