|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.exolab.jms.authentication.UserManager
The user manager is responsible for creating and managing users.
| Constructor Summary | |
protected |
UserManager()
Construct a new UserManager |
| Method Summary | |
protected void |
addToUserCache(User user)
Add the specified entry to the user cache, if it doesn't already exist. |
boolean |
createUser(User user)
Create a new user |
boolean |
deleteUser(User user)
Delete a users |
void |
destroy()
Destroy this manager. |
User |
getUser(User user)
Return a user |
protected void |
init()
Initialise user manager. |
protected void |
registerConfiguredUsers()
Registers users specified in the configuration |
protected void |
removeFromUserCache(User user)
Remove the specified user from the cache |
boolean |
updateUser(User user)
Update user. |
java.util.Iterator |
userNames()
Return a list of user names currently supported by the user manager. |
boolean |
validateUser(java.lang.String username,
java.lang.String password)
Determines if a user's name and password are valid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected UserManager()
throws org.exolab.core.service.ServiceException
UserManagerorg.exolab.core.service.ServiceException - if the service cannot be initialised| Method Detail |
public boolean createUser(User user)
user - the userobject containing username and passwordtrue if the user is created
otherwise falsepublic boolean updateUser(User user)
user - the userobject containing the usernametrue if password is updated
otherwise falsepublic boolean deleteUser(User user)
user - the userobject containing the usernametrue if the is removed
otherwise falsepublic User getUser(User user)
user - the userobject containing the usernamepublic java.util.Iterator userNames()
public void destroy()
public boolean validateUser(java.lang.String username,
java.lang.String password)
username - the user's namepassword - the user's passwordtrue if the name and password are valid,
otherwise false
protected void init()
throws org.exolab.core.service.ServiceException
org.exolab.core.service.ServiceException - if the user manager cannot be initialisedprotected void addToUserCache(User user)
user - - user to addprotected void removeFromUserCache(User user)
user - the user to removeprotected void registerConfiguredUsers()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||