org.exolab.jms.authentication
Class AuthenticationMgr

java.lang.Object
  |
  +--org.exolab.jms.service.Service
        |
        +--org.exolab.jms.authentication.AuthenticationMgr
All Implemented Interfaces:
org.exolab.jms.net.connector.Authenticator, Serviceable

public class AuthenticationMgr
extends Service
implements org.exolab.jms.net.connector.Authenticator

This is the active authentication component within the JMS server.

Version:
$Revision: 1.2 $ $Date: 2005/08/30 05:00:24 $
Author:
Knut Lerpold

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

AuthenticationMgr

public AuthenticationMgr(UserManager users)
Construct a new AuthenticationManager.
Parameters:
users - the user manager
Method Detail

addUser

public boolean addUser(User user)
Create a user.
Parameters:
user - the user to create
Returns:
true if the user is created otherwise false

removeUser

public boolean removeUser(User user)
Remove this user
Parameters:
user - the user to remove
Returns:
true if the user is removed otherwise false

updateUser

public boolean updateUser(User user)
Update a user.
Parameters:
user - the user to update
Returns:
true if the password is updated otherwise false

validateUser

public boolean validateUser(java.lang.String username,
                            java.lang.String password)
Validate the password for the specified user.
Parameters:
username - the user's name
password - the password to check
Returns:
true if the username and password exist, otherwise false

authenticate

public boolean authenticate(java.security.Principal principal)
Determines if a principal has permissions to connect
Specified by:
authenticate in interface org.exolab.jms.net.connector.Authenticator
Parameters:
principal - the principal to check
Returns:
true if the principal has permissions to connect


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.