authorization
Class HostCredential

java.lang.Object
  extended by authorization.HostCredential
All Implemented Interfaces:
IHostCredential

public class HostCredential
extends java.lang.Object
implements IHostCredential

Host credential object.

A host credential consists of a user name and password to be used when logging into the host. This is a mutable bean to allow defaulting to the original username and password supplied, or to overriding that default with information gleaned from a database.


Field Summary
private  java.lang.String hostPassword
           
private  java.lang.String hostUserName
           
 
Constructor Summary
HostCredential()
          Default constructor: create an empty instance.
HostCredential(java.lang.String hostUserName, java.lang.String hostPassword)
          Constructor: create an instance holding the credentials provided.
 
Method Summary
 java.lang.String getHostPassword()
          Password getter.
 java.lang.String getHostUserName()
          User name getter.
 void setHostPassword(java.lang.String hostPassword)
          Password setter.
 void setHostUserName(java.lang.String hostUserName)
          User name setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostUserName

private java.lang.String hostUserName

hostPassword

private java.lang.String hostPassword
Constructor Detail

HostCredential

public HostCredential()
Default constructor: create an empty instance.


HostCredential

public HostCredential(java.lang.String hostUserName,
                      java.lang.String hostPassword)
Constructor: create an instance holding the credentials provided.

Parameters:
hostUserName - user's login ID on host
hostPassword - user's password on host
Method Detail

getHostUserName

public java.lang.String getHostUserName()
User name getter.

Specified by:
getHostUserName in interface IHostCredential
Returns:
host user name

setHostUserName

public void setHostUserName(java.lang.String hostUserName)
User name setter.

Parameters:
hostUserName - host user name for this user

getHostPassword

public java.lang.String getHostPassword()
Password getter.

Specified by:
getHostPassword in interface IHostCredential
Returns:
host password corresponding to the host user name

setHostPassword

public void setHostPassword(java.lang.String hostPassword)
Password setter.

Parameters:
hostPassword - host password for this host user name