|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.exolab.core.service.Service
|
+--org.exolab.core.service.BasicService
|
+--org.exolab.jms.authentication.AuthenticationMgr
This is the active authentication component within the JMS server.
| Method Summary | |
boolean |
addUser(User user)
Create a user. |
static AuthenticationMgr |
createInstance()
Create and return an instance of the singleton. |
User |
getUser(User user)
Gets a user. |
static AuthenticationMgr |
instance()
Return an instance to the AuthenticationMgr singleton. |
boolean |
removeUser(User user)
Remove this user |
void |
run()
|
void |
stop()
|
boolean |
updateUser(User user)
Update a user. |
boolean |
validateUser(java.lang.String username,
java.lang.String password)
Validate the password for the specified user. |
| Methods inherited from class org.exolab.core.service.BasicService |
start, toString |
| Methods inherited from class org.exolab.core.service.Service |
getName, getState, restart, setState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static AuthenticationMgr createInstance()
throws org.exolab.core.service.ServiceException
org.exolab.core.service.ServiceException - if the service cannot be createdpublic static AuthenticationMgr instance()
createInstance()public void run()
run in class org.exolab.core.service.BasicService
public void stop()
throws org.exolab.core.service.ServiceException
stop in class org.exolab.core.service.BasicServicepublic boolean addUser(User user)
user - the user to createtrue if the user is created
otherwise falsepublic boolean removeUser(User user)
user - the user to removetrue if the user is removed
otherwise falsepublic User getUser(User user)
user - the userpublic boolean updateUser(User user)
user - the user to updatetrue if the password is updated
otherwise false
public boolean validateUser(java.lang.String username,
java.lang.String password)
username - the user's namepassword - the password to checktrue if the username and password exist, otherwise
false
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||