|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String |
ADMIN
|
static UserProfile |
DEFAULT_USER_PROFILE
|
static java.lang.String |
DEFAULT_USER_TYPE
|
static java.lang.String |
GUEST
|
static java.lang.String |
USER
|
Constructor Summary | |
---|---|
UserProfile()
|
|
UserProfile(java.lang.String name,
java.lang.String userType)
|
Method Summary | |
---|---|
boolean |
authenticate(java.lang.String password)
returns true if the specified password is the password for this user profile |
boolean |
equals(java.lang.Object obj)
check for equality with another user profile object |
java.lang.String |
getDefaultSaveDirectory()
|
java.lang.String |
getEncryptedPassword()
|
java.lang.String |
getUsername()
|
java.lang.String |
getUserType()
|
static boolean |
isValidUserType(java.lang.String userType)
returns true if the specified value is a valid user type |
void |
setDefaultSaveDirectory(java.lang.String newValue)
|
void |
setEncryptedPassword(java.lang.String encryptedPassword)
|
void |
setPassword(java.lang.String password)
stores the specified password as an encrypted password |
void |
setUsername(java.lang.String username)
|
void |
setUserType(java.lang.String userType)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ADMIN
public static final java.lang.String USER
public static final java.lang.String GUEST
public static final java.lang.String DEFAULT_USER_TYPE
public static final UserProfile DEFAULT_USER_PROFILE
Constructor Detail |
---|
public UserProfile()
public UserProfile(java.lang.String name, java.lang.String userType)
Method Detail |
---|
public static boolean isValidUserType(java.lang.String userType)
userType
-
public boolean authenticate(java.lang.String password)
password
-
public void setPassword(java.lang.String password)
password
- The password to set.public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- The username to set.public java.lang.String getUserType()
public void setUserType(java.lang.String userType)
userType
- The userType to set.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getEncryptedPassword()
public void setEncryptedPassword(java.lang.String encryptedPassword)
encryptedPassword
- The encryptedPassword to set.public java.lang.String getDefaultSaveDirectory()
public void setDefaultSaveDirectory(java.lang.String newValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |