|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object User
Model a juno user. Each User has a login name, password, a home directory, and a real name. name.
Constructor Summary | |
User(String name,
String password,
Directory home,
String realName)
Construct a new User. |
Method Summary | |
Directory |
getHome()
Get the User's home Directory. |
String |
getName()
Get the User's login name. |
String |
getRealName()
Get the user's real name. |
void |
matchPassword(String guess)
Confirm password. |
String |
toString()
Convert the User to a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public User(String name, String password, Directory home, String realName)
name
- the User's login name.password
- the user's login password.home
- her home Directory.realName
- her real name.Method Detail |
public Directory getHome()
public String getName()
public String getRealName()
public void matchPassword(String guess) throws JunoException
guess
- the string to test against the password.
JunoException
- if password fails to matchpublic String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |