org.springframework.security.ldap
Interface SpringSecurityContextSource
- All Superinterfaces:
- org.springframework.ldap.core.support.BaseLdapPathContextSource, org.springframework.ldap.core.support.BaseLdapPathSource, org.springframework.ldap.core.ContextSource
- All Known Implementing Classes:
- DefaultInitialDirContextFactory, DefaultSpringSecurityContextSource
public interface SpringSecurityContextSource
- extends org.springframework.ldap.core.support.BaseLdapPathContextSource
Extension of ContextSource
which allows binding explicitly as a particular user.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Luke Taylor
Methods inherited from interface org.springframework.ldap.core.ContextSource |
getReadOnlyContext, getReadWriteContext |
Methods inherited from interface org.springframework.ldap.core.support.BaseLdapPathSource |
getBaseLdapPath, getBaseLdapPathAsString |
getReadWriteContext
DirContext getReadWriteContext(String userDn,
Object credentials)
- Obtains a context using the supplied distinguished name and credentials.
- Parameters:
userDn
- the distinguished name of the user to authenticate ascredentials
- the user's password
- Returns:
- a context authenticated as the supplied user
Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.