org.apache.commons.latka.http
Class CredentialsImpl

java.lang.Object
  extended by org.apache.commons.latka.http.CredentialsImpl
All Implemented Interfaces:
Credentials

public class CredentialsImpl
extends Object
implements Credentials

Concrete Implementation of Credentials

Version:
$Id: CredentialsImpl.java 155424 2005-02-26 13:09:29Z dirkv $
Author:
Morgan Delagrange, dIon Gillard
See Also:
Credentials

Field Summary
protected  String _password
          holds password
protected  String _userName
          holds user name
 
Constructor Summary
CredentialsImpl(String userName, String password)
          Create credentials given user name and password
 
Method Summary
 String getPassword()
          return the user's password
 String getUserName()
          return the user's name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_userName

protected String _userName
holds user name


_password

protected String _password
holds password

Constructor Detail

CredentialsImpl

public CredentialsImpl(String userName,
                       String password)
Create credentials given user name and password

Parameters:
userName - the user's name
password - the user's password
Method Detail

getUserName

public String getUserName()
return the user's name

Specified by:
getUserName in interface Credentials
Returns:
the user's name

getPassword

public String getPassword()
return the user's password

Specified by:
getPassword in interface Credentials
Returns:
the user's password


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.