|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUser
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 |
---|
void setName(java.lang.String name)
name
- The name of this user.java.lang.String getName()
void setPassword(java.lang.String password)
password
- The plain password of the user to hash.void setPasswordHashed(java.lang.String password)
password
- The already SHA hased password of the user.java.lang.String getPassword()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |