org.codehaus.plexus.redback.authentication.users
Class UserManagerAuthenticator
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
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
| Fields inherited from interface org.codehaus.plexus.redback.authentication.Authenticator |
ROLE |
| 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 |
UserManagerAuthenticator
public UserManagerAuthenticator()
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.