org.codehaus.plexus.redback.authentication.users
Class UserManagerAuthenticator

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.redback.authentication.users.UserManagerAuthenticator
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, Authenticator

public class UserManagerAuthenticator
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements Authenticator

Authenticator implementation that uses a wrapped UserManager to authenticate.

Version:
$Id: UserManagerAuthenticator.java 486 2008-07-02 06:50:15Z oching $
Author:
Rahul Thakur

Field Summary
 
Fields inherited from interface org.codehaus.plexus.redback.authentication.Authenticator
ROLE
 
Constructor Summary
UserManagerAuthenticator()
           
 
Method Summary
 AuthenticationResult authenticate(AuthenticationDataSource ds)
           
 java.lang.String getId()
           
 UserManager getUserManager()
          Returns the wrapped UserManager used by this Authenticator implementation for authentication.
 void setUserManager(UserManager userManager)
          Sets a UserManager to be used by this Authenticator implementation for authentication.
 boolean supportsDataSource(AuthenticationDataSource source)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagerAuthenticator

public UserManagerAuthenticator()
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface Authenticator

authenticate

public AuthenticationResult authenticate(AuthenticationDataSource ds)
                                  throws AuthenticationException,
                                         AccountLockedException
Specified by:
authenticate in interface Authenticator
Throws:
AccountLockedException
MustChangePasswordException
PolicyViolationException
AuthenticationException
See Also:
Authenticator.authenticate(org.codehaus.plexus.redback.authentication.AuthenticationDataSource)

getUserManager

public UserManager getUserManager()
Returns the wrapped UserManager used by this Authenticator implementation for authentication.

Returns:
the userManager

setUserManager

public void setUserManager(UserManager userManager)
Sets a UserManager to be used by this Authenticator implementation for authentication.

Parameters:
userManager - the userManager to set

supportsDataSource

public boolean supportsDataSource(AuthenticationDataSource source)
Specified by:
supportsDataSource in interface Authenticator


Copyright © 2006-2008 Codehaus. All Rights Reserved.