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, InitializingBean, MessageSourceAware
public class BindAuthenticator
- extends AbstractLdapAuthenticator
An authenticator which binds as a user.
- Version:
- $Id: BindAuthenticator.java 1605 2006-08-25 16:06:20Z 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-2006 Acegi Technology Pty Limited. All Rights Reserved.