|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.ui.console.multiuser.UserManager
public class UserManager
The usermanager is responsible for reading the users configuration file and loading in all of the possible users. It is also responsible for authenticating a username/password
Nested Class Summary | |
---|---|
static class |
UserManager.UserManagerConfig
|
Constructor Summary | |
---|---|
UserManager(java.lang.String fileName)
|
Method Summary | |
---|---|
void |
addUser(UserProfile user)
adds another user to the users list |
UserProfile |
authenticate(java.lang.String username,
java.lang.String password)
attempts to locate a user with the specified username and then verifies that the specified password is the same as the password associated with that user |
void |
deleteUser(java.lang.String userName)
removes the user with the specified name |
protected void |
doLoad(java.io.InputStream in)
|
protected void |
doSave(java.io.OutputStream out)
|
static UserManager |
getInstance(PluginInterface pi)
|
UserProfile |
getUser(java.lang.String username)
returns the profile for the user with the specified username otherwise null if there is no such user |
java.util.Collection |
getUsers()
|
void |
load()
load a new UserManager object from the specified input stream. |
void |
save()
write the UserManager configuration out to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserManager(java.lang.String fileName)
configFile
- Method Detail |
---|
public UserProfile authenticate(java.lang.String username, java.lang.String password)
username
- password
-
public UserProfile getUser(java.lang.String username)
username
-
public void addUser(UserProfile user)
user
- public java.util.Collection getUsers()
public void load() throws java.io.FileNotFoundException
in
-
java.io.FileNotFoundException
protected void doLoad(java.io.InputStream in)
public void save() throws java.io.FileNotFoundException
out
-
java.io.FileNotFoundException
XMLEncoder
protected void doSave(java.io.OutputStream out)
public static UserManager getInstance(PluginInterface pi)
public void deleteUser(java.lang.String userName)
userName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |