com.openexchange.admin.rmi.dataobjects
Class Credentials

java.lang.Object
  extended by com.openexchange.admin.rmi.dataobjects.Credentials
All Implemented Interfaces:
Serializable

public class Credentials
extends Object
implements Serializable

This object must be send with every method call in ox rmi interface!

Author:
Manuel Kraft, Carsten Hoeger, Dennis Sieben
See Also:
Serialized Form

Constructor Summary
Credentials()
          Creates a new instance of the object
Credentials(String login, String password)
          Creates a new instance of the object and sets login and password
 
Method Summary
 boolean equals(Object obj)
           
 String getLogin()
          Returns the login of this credentials object
 String getPassword()
          Returns the password in clear text
 int hashCode()
           
 void setLogin(String login)
          Set the login attribute of this credentials object
 void setPassword(String passwd)
          Sets this password for this credentials object
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Credentials

public Credentials()
Creates a new instance of the object


Credentials

public Credentials(String login,
                   String password)
Creates a new instance of the object and sets login and password

Parameters:
login -
password -
Method Detail

getLogin

public final String getLogin()
Returns the login of this credentials object

Returns:
Returns the login of this credentials object

setLogin

public final void setLogin(String login)
Set the login attribute of this credentials object

Parameters:
login - Set the login attribute of this credentials object

getPassword

public final String getPassword()
Returns the password in clear text

Returns:
Returns the password in cleartext

setPassword

public final void setPassword(String passwd)
Sets this password for this credentials object

Parameters:
passwd - Sets this password for this credentials object

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object