com.netflix.astyanax.connectionpool.impl
Class SimpleAuthenticationCredentials
java.lang.Object
com.netflix.astyanax.connectionpool.impl.SimpleAuthenticationCredentials
- All Implemented Interfaces:
- AuthenticationCredentials
public class SimpleAuthenticationCredentials
- extends java.lang.Object
- implements AuthenticationCredentials
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleAuthenticationCredentials
public SimpleAuthenticationCredentials(java.lang.String username,
java.lang.String password)
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