|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.core.service.Service
org.exolab.core.service.BasicService
org.exolab.jms.authentication.AuthenticationMgr
public class 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()
public void stop()
throws org.exolab.core.service.ServiceException
stop in interface org.exolab.core.service.Serviceablestop in class org.exolab.core.service.BasicServiceorg.exolab.core.service.ServiceExceptionpublic boolean addUser(User user)
user - the user to create
true if the user is created
otherwise falsepublic boolean removeUser(User user)
user - the user to remove
true if the user is removed
otherwise falsepublic User getUser(User user)
user - the user
public boolean updateUser(User user)
user - the user to update
true 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 check
true if the username and password exist, otherwise
false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||