|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.service.Service
org.exolab.jms.authentication.AuthenticationMgr
public class AuthenticationMgr
This is the active authentication component within the JMS server.
Constructor Summary | |
---|---|
AuthenticationMgr(UserManager users)
Construct a new AuthenticationManager . |
Method Summary | |
---|---|
boolean |
addUser(User user)
Create a user. |
boolean |
authenticate(java.security.Principal principal)
Determines if a principal has permissions to connect |
boolean |
removeUser(User user)
Remove this user |
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.jms.service.Service |
---|
doStart, doStop, getName, isStarted, restart, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AuthenticationMgr(UserManager users)
AuthenticationManager
.
users
- the user managerMethod Detail |
---|
public boolean addUser(User user)
user
- the user to create
true
if the user is created otherwise
false
public boolean removeUser(User user)
user
- the user to remove
true
if the user is removed otherwise
false
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
public boolean authenticate(java.security.Principal principal)
authenticate
in interface org.exolab.jms.net.connector.Authenticator
principal
- the principal to check
true
if the principal has permissions to connect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |