org.acegisecurity.providers.ldap.authenticator
Class BindAuthenticator

java.lang.Object
  extended by org.acegisecurity.providers.ldap.authenticator.AbstractLdapAuthenticator
      extended by org.acegisecurity.providers.ldap.authenticator.BindAuthenticator
All Implemented Interfaces:
LdapAuthenticator, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware

public class BindAuthenticator
extends AbstractLdapAuthenticator

An authenticator which binds as a user.

Version:
$Id: BindAuthenticator.java 2348 2007-12-07 16:04:43Z luke_t $
Author:
Luke Taylor
See Also:
AbstractLdapAuthenticator

Field Summary
 
Fields inherited from class org.acegisecurity.providers.ldap.authenticator.AbstractLdapAuthenticator
messages
 
Constructor Summary
BindAuthenticator(InitialDirContextFactory initialDirContextFactory)
          Create an initialized instance to the InitialDirContextFactory provided.
 
Method Summary
 LdapUserDetails authenticate(String username, String password)
          Authenticates as a user and obtains additional user information from the directory.
 
Methods inherited from class org.acegisecurity.providers.ldap.authenticator.AbstractLdapAuthenticator
afterPropertiesSet, getInitialDirContextFactory, getUserAttributes, getUserDetailsMapper, getUserDns, getUserSearch, setMessageSource, setUserAttributes, setUserDetailsMapper, setUserDnPatterns, setUserSearch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindAuthenticator

public BindAuthenticator(InitialDirContextFactory initialDirContextFactory)
Create an initialized instance to the InitialDirContextFactory provided.

Parameters:
initialDirContextFactory -
Method Detail

authenticate

public LdapUserDetails authenticate(String username,
                                    String password)
Description copied from interface: LdapAuthenticator
Authenticates as a user and obtains additional user information from the directory.

Parameters:
username - the user's login name (not their DN).
password - the user's password supplied at login.
Returns:
the details of the successfully authenticated user.


Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.