|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.ui.console.UserProfile
public class UserProfile
the user profile contains the information about a user that is allowed to use the console ui.
Users may be assigned one of three profiles:
| Field Summary | |
|---|---|
static String |
ADMIN
|
static UserProfile |
DEFAULT_USER_PROFILE
|
static String |
DEFAULT_USER_TYPE
|
static String |
GUEST
|
static String |
USER
|
| Constructor Summary | |
|---|---|
UserProfile()
|
|
UserProfile(String name,
String userType)
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(String password)
returns true if the specified password is the password for this user profile |
boolean |
equals(Object obj)
check for equality with another user profile object |
String |
getDefaultSaveDirectory()
|
String |
getEncryptedPassword()
|
String |
getUsername()
|
String |
getUserType()
|
static boolean |
isValidUserType(String userType)
returns true if the specified value is a valid user type |
void |
setDefaultSaveDirectory(String newValue)
|
void |
setEncryptedPassword(String encryptedPassword)
|
void |
setPassword(String password)
stores the specified password as an encrypted password |
void |
setUsername(String username)
|
void |
setUserType(String userType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ADMIN
public static final String USER
public static final String GUEST
public static final String DEFAULT_USER_TYPE
public static final UserProfile DEFAULT_USER_PROFILE
| Constructor Detail |
|---|
public UserProfile()
public UserProfile(String name,
String userType)
| Method Detail |
|---|
public static boolean isValidUserType(String userType)
userType -
public boolean authenticate(String password)
password -
public void setPassword(String password)
password - The password to set.public String getUsername()
public void setUsername(String username)
username - The username to set.public String getUserType()
public void setUserType(String userType)
userType - The userType to set.public boolean equals(Object obj)
equals in class Objectpublic String getEncryptedPassword()
public void setEncryptedPassword(String encryptedPassword)
encryptedPassword - The encryptedPassword to set.public String getDefaultSaveDirectory()
public void setDefaultSaveDirectory(String newValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||