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

Method Summary
 javax.naming.directory.DirContext getReadWriteContext(java.lang.String userDn, java.lang.Object credentials)
          Obtains a context using the supplied distinguished name and credentials.
 
Methods inherited from interface org.springframework.ldap.core.ContextSource
getContext, getReadOnlyContext, getReadWriteContext
 
Methods inherited from interface org.springframework.ldap.core.support.BaseLdapPathSource
getBaseLdapPath, getBaseLdapPathAsString
 

Method Detail

getReadWriteContext

javax.naming.directory.DirContext getReadWriteContext(java.lang.String userDn,
                                                      java.lang.Object credentials)
Obtains a context using the supplied distinguished name and credentials.

Parameters:
userDn - the distinguished name of the user to authenticate as
credentials - the user's password
Returns:
a context authenticated as the supplied user