org.acegisecurity.providers.ldap.authenticator
Class BindAuthenticator
java.lang.Object
org.acegisecurity.providers.ldap.authenticator.AbstractLdapAuthenticator
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
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 |
BindAuthenticator
public BindAuthenticator(InitialDirContextFactory initialDirContextFactory)
- Create an initialized instance to the
InitialDirContextFactory
provided.
- Parameters:
initialDirContextFactory
-
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-2009 Interface21, Inc. All Rights Reserved.