at.ac.tuwien.dslab.rmi.common.interfaces
Interface IUser

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
UserImpl

public interface IUser
extends java.io.Serializable

The IUser interface defines the default behaviour of a user. The password of a user has to be stored in hashed form. The setPassword method has to be invoked with the cleartext password and then hashes the password internally.


Method Summary
 java.lang.String getName()
          Gets the name of this user.
 java.lang.String getPassword()
          Gets the SHA hashed password for this user.
 void setName(java.lang.String name)
          Sets the name of this user.
 void setPassword(java.lang.String password)
          Sets the plaintext password of the user and hashes it with the SHA algorithm.
 void setPasswordHashed(java.lang.String password)
          Sets the already hashed password of the user.
 

Method Detail

setName

void setName(java.lang.String name)
Sets the name of this user.

Parameters:
name - The name of this user.

getName

java.lang.String getName()
Gets the name of this user.

Returns:
The name of this user.

setPassword

void setPassword(java.lang.String password)
Sets the plaintext password of the user and hashes it with the SHA algorithm.

Parameters:
password - The plain password of the user to hash.

setPasswordHashed

void setPasswordHashed(java.lang.String password)
Sets the already hashed password of the user.

Parameters:
password - The already SHA hased password of the user.

getPassword

java.lang.String getPassword()
Gets the SHA hashed password for this user.

Returns:
The SHA hashed password for this user.